docker search [TERM]
searches registry for image in https://hub.docker.com.docker pull
pulls an image from registry to local machine.docker images
shows all images.docker run [IMAGE]
execute docker image.docker inspect [NAME|ID]
return low-level information on Docker objects.docker port CONTAINER
list port mappings or a specific mapping for the container.docker ps
shows running containers. “ps” mean process status.docker attach[CONTAINER]
will connect to a running container.- You can detach from a container and leave it running using the
ctrl+p ctrl+q
key sequence. docker stop [CONTAINER]
stops a running container.docker rmi [IMAGE]
removes an image.
docker run -p 80:80 --name php-container --link mysql-container:mysql php-image