Images
DevOps Docker Images
Common command
command | description |
---|---|
docker images |
Show all images |
docker rmi {image_name} |
Remove images |
docker run -i -t -d -p 80:80 {image_name} |
Run the specific image and expose the port to allow access |
docker run -i -t -d -p 80:80 --restart always {image_name} |
Make sure the container will always restart if it runs fail |