Giter Site home page Giter Site logo

docker-cheatsheet's Introduction

docker-cheatSheet

  1. docker –version

This command is used to get the currently installed version of docker

  1. docker pull

Usage: docker pull

This command is used to pull images from the docker repository(hub.docker.com)

  1. docker run

Usage: docker run -it -d

This command is used to create a container from an image

  1. docker ps

This command is used to list the running containers

  1. docker ps -a

This command is used to show all the running and exited containers

  1. docker exec

Usage: docker exec -it bash

This command is used to access the running container

  1. docker stop

Usage: docker stop

This command stops a running container

  1. docker kill

Usage: docker kill

This command kills the container by stopping its execution immediately. The difference between ‘docker kill’ and ‘docker stop’ is that ‘docker stop’ gives the container time to shutdown gracefully, in situations when it is taking too much time for getting the container to stop, one can opt to kill it

  1. docker commit

Usage: docker commit <username/imagename>

This command creates a new image of an edited container on the local system

  1. docker login

This command is used to login to the docker hub repository

  1. docker push

Usage: docker push <username/image name>

This command is used to push an image to the docker hub repository

  1. docker images

This command lists all the locally stored docker images

  1. docker rm

Usage: docker rm

This command is used to delete a stopped container

  1. docker rmi

Usage: docker rmi

This command is used to delete an image from local storage

  1. docker build

Usage: docker build

This command is used to build an image from a specified docker file

docker inspect [container ID] -> Get more info about running container docker volume -> create a docker volume docker network -> create a docker network docker build -> build a new image from dockerfile docker login -> Login to docker account

docker-cheatsheet's People

Contributors

ishrivasayush avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.