Docker Commands
Docker Commands
List running containers docker ps Run in a new named docker run -it --name cont_name #image
Remove all images docker rmi `docker images -q` Kill container docker kill #container
Show corresponding docker port #container container_port Attach #1 docker attach #container
Add tag to image docker tag #container #image:tag Show resources usage docker stats #container
Rename container docker rename old_name new_name Show changes in filesystem docker diff #container
Version info docker version Export image to tar docker save -o file.tar #image[:tag]
Help