docker build -t <tag_name> .
docker run image_name:tag_name
docker images
docker rmi <docker_image_id>
docker rmi -f <docker_image_id>
docker rmi $(docker images -a -q)
- Remove all images with force mode -f
docker rmi -f $(docker images -a -q)
docker container ls -l
docker stop <container_id>
docker stop $(docker ps -a -q)
docker rm <container_id>
docker rm -f $(docker ps -a -q)
docker ps
docker container exec <container_id> <shell_command>
docker container exec 0c61b918d40e ls -l
docker cp <container_id>:/<source_container> /<localhost_system_file>
docker cp 0c61b918d40e:/usr/src/app /home/data_container
docker cp /<destination_host> <container_id>:/<source_container>
docker cp /home/data.txt 0c61b918d40e:/usr/src/app/