Container Management
-
create -
run -
start -
createcreates a new container from an image but does not run -
runis a combination command ofcreateandstart -
startstarts and already existing container
Start Container
docker start <container-name>
docker run <image-name>
Example
docker run app-foo
Start Container With Active Terminal
docker run -it <image-name>
docker run -it app-foo
Start Container with Bash
docker run -ti <image-name> /bin/bash