Fast Deploying Systems With Docker

Docker Basic Command

We briefly explain some commonly used commands. If you want to know all commands in Docker, you can go to the docker command line page

HELP

When you forget the commands, you can use this command to know the detail information.

$ sudo docker run --help

Show Docker Images

$ sudo docker images

Show Docker Container

Show Running Container

$ sudo docker ps

Show All container

$ sudo docker ps -a

Run a container

$ sudo docker run -i -t images(imageid or <repository:tag>

For instacne, you want to run a container with ubuntu 14.04 system

$ sudo docker run -i -t <ubuntu:14.04>

If you want to quit the container (not stopping it), you just click Ctrl + P and Ctrl + C