26 July
                    2022
                
            Docker Commands Cheat Sheet
run container
docker runrun container and drop to shell
docker run -it 
docker run --interactive --tty run container in background
docker run -dcontainer restart setings
docker run --restart (always|no|on-failure[:maxretries]|unless-stopped) remove container when exited
docker run --rm view containers running
docker container ls
docker container ls -astart container
docker startstop container
docker stopremove container
docker rmremove all stopped
docker container prunerename container
docker renameview containers metrics
docker stats []copy file into container
docker cp file.ext :/path/to/folder/view container information
docker inspectFind container’s IP
docker inspect | grep IPAddressMake a container an image
docker commitMap container port to host port
docker run -p :