Skip to main content

Docker (IN PROGRESS)

docker hub

https://hub.docker.com/

docker pull linux:version

docker images

docker run -it (run and interact) imagename /bin/bash

commit a image

docker ps -al

docker commit $ID $NAME

docker rm $ID

docker rmi $ID

docker run --name my_name -d -p 80:80 -v /data/websites:/var/www

(-v = volume, -p = port, -d = detach)