Docker Cheatsheet, List of Basic docker commands $ docker run <containerId> #run docker container, first checks locally, if not found pull from remote repository $ docker stop <containerId> #stop docker container $ docker ps -a # list all the containers $ docker rm <containerId> # delete docker container $ docker rm $(docker ps -a -q -f status=exited) #deleted all the exited docker container $ docker commit <container-id> <image-name> $ docker search <imageName> #same as git repo $ docker pull <imageName> #same as git pull list network $ docker network ls create network $docker network create <networkName> inspect docker network $ docker network inspect <networkName> run container and attach to network $docker run -it --net=<networkName> <containerName> run multiple container in same network $docker run -it --net=bridge <containerName> $docker run -it --net=container:<containerName> <containerNa...
Software Company in Butwal, Nepal.