Container Management
-
create
-
run
-
start
-
create
creates a new container from an image but does not run -
run
is a combination command ofcreate
andstart
-
start
starts 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