net start docker service 1

net start docker service

before run this command, run administrator is required

>net start com.docker.service - start service docker
>net stop com.docker.service - stop service docker

Here is what the above code is Doing:
1. We’re creating a new Docker container using the image we just created.
2. We’re giving the container a name of “my_container”.
2. We’re mapping the container’s port 80 to the host’s port 8080.
3. We’re telling the container to run the command “python app.py” when it starts.

Similar Posts