Answers for "start docker container that's not running"

2

docker run doesn't start container

docker run -it -d <image>
Posted by: Guest on June-21-2021
0

Docker - Container is not running

docker pull debian

docker run -t -d --name my_debian debian
e7672d54b0c2

docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
e7672d54b0c2        debian              "bash"              3 minutes ago       Up 3 minutes                            my_debian

#now you can execute command on the container
docker exec -it my_debian bash
root@e7672d54b0c2:/#
Posted by: Guest on June-22-2021

Code answers related to "start docker container that's not running"

Browse Popular Code Answers by Language