Docker Easy Guide
docker pull ubuntu
docker images -a
docker run -it -d ubuntu
-it Terminal interactive
-d Run container as deamon (run in background)
docker ps -a
-a See all containers
docker exec -it <container id> bash
docker stop <container id>
docker kill <container id>
docker rm -f <container id>
-f Delete a running container
#Delete all container
docker rm -f $(docker ps -a -q)
docker rmi <image id>
docker commit <image id> <new image name>
docker run -it -p 82:80 -d httpd
docker run -it --name wordpress1 -p 8080:80 -d wordpress
docker update --restart unless-stopped wordpress