Docker Basic
Contents
Some notes about using docker
Manipulate Container
Create and run a container from an image
|
|
This is a tip
docker start -a (watch for the output of the container and put it to terminal)
Create and run a container and override default command
|
|
List all containers
|
|
Delete all containers
|
|
Get logs from container
|
|
Stop containers
|
|
This is a tip
docker stop will allow the process to clean up while the docker kill will terminate the process immediatelyExecuting commands in running container
|
|
This is a tip
-i flag direct the stdin and stdout -t format the stdin and stdout
This is a tip
docker exec -it <container id> sh get command prompt
This is a tip
alternatively,
|
|
Start the container and run the command
v1.4.14