1 / 25

Docker Commands With Examples | Docker Tutorial | DevOps Tutorial | Docker Training | Edureka

***** DevOps Masters Program : https://www.edureka.co/masters-program/devops-engineer-training ***** <br>This DevOps Docker Commands tutorial ( Docker Tutorial Blog Series: https://goo.gl/z93Ed1 ) will introduce you to the most commonly used Docker commands. The Hands-On session is performed on an Ubuntu-64 bit machine in which Docker is installed. <br>To learn how Docker can be used to integrate multiple DevOps tools, watch the video titled 'DevOps Tools', by clicking this link: https://goo.gl/up9iwd

EdurekaIN
Download Presentation

Docker Commands With Examples | Docker Tutorial | DevOps Tutorial | Docker Training | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Agenda Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  2. Most Used Docker Commands docker commit docker --version docker ps docker import docker --help docker images docker export docker pull docker stop docker container docker run docker kill docker compose docker build docker rm docker swarm docker login docker rmi docker service docker push docker exec Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  3. Basic Docker Commands docker --version This command returns the version of Docker which is installed Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  4. Basic Docker Commands docker --help This command returns a list of commands available in Docker along with the possible flags (options) Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  5. Basic Docker Commands docker pull $ docker pull ubuntu This command pulls a new Docker image from the Docker Hub Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  6. Basic Docker Commands docker images $ docker images This command lists down all the images in your local repo Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  7. Basic Docker Commands docker run $ docker run ubuntu This command executes a Docker image on your local repo & creates a running Container out of it Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  8. Basic Docker Commands docker build $ docker build –t MyUbuntuImage . This command is used to compile the Dockerfile, for building custom Docker images based on the Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  9. Basic Docker Commands docker container $ docker container logs This command is used to perform various operations on the container. Refer to www.docs.docker.com for more info. $ docker container kill $ docker container rm $ docker container run $ docker container start And so on.. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  10. Basic Docker Commands docker login $ docker login This command is used to Login to Docker Hub repo from the CLI Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  11. Basic Docker Commands docker push $ docker push vardhanns/MyUbuntuImage This command pushes a Docker image on your local repo to the Docker Hub Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  12. Basic Docker Commands docker ps $ docker ps This command lists all the running containers in the host If ‘–a’ flag is specified, shutdown containers are also displayed $ docker ps -a Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  13. Basic Docker Commands docker stop $ docker stop fe6e370a1c9c This command shuts down the container whose Container ID is specified in arguments. Container is shut down gracefully by waiting for other dependencies to shut Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  14. Basic Docker Commands docker kill $ docker kill fe6e370a1c9c This command kills the container by stopping its execution immediately. Its similar to force kill Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  15. Basic Docker Commands docker rm $ docker rm fe6e370a1c9c This command removes the container whose Container ID is specified in arguments Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  16. Basic Docker Commands docker rmi $ docker rmi MyUbuntuImage This command removes the image whose name has been specified in arguments Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  17. Basic Docker Commands docker exec $ docker exec -it fe6e370a1c9c bash This command is used to access an already running container and perform operations inside the container Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  18. Basic Docker Commands docker commit $ docker commit fe6e370a1c9c vardhanns/MyModifiedImage This command creates a new image of an edited container on the local repo Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  19. Basic Docker Commands docker export $ docker export --output=“latest.tar” mycontainer This command is used to export a Docker image into a tar file in your local system Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  20. Basic Docker Commands docker import $ docker import /home/edureka/Downloads/demo.tgz This command is used to import the contents of a tar file (usually a Docker image) into your local repo Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  21. Advanced Docker Commands docker compose $ docker-compose build $ docker-compose up This command is used to power multi-container applications where various services will be hosted inside different containers Note: This command is executed in the directory where YAML file is present for building the Compose. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  22. Advanced Docker Commands docker swarm $ docker swarm init --advertise-addr 192.168.1.100 $ docker swarm join This command creates a network of Docker engines/ hosts to execute containers in parallel (for scaling up & high availability) $ docker swarm join-token $ docker swarm leave And so on.. Docker Manager Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  23. Advanced Docker Commands docker service $ docker service ls $ docker service ps This command is used to control any existing Docker service (Containers/Compose/Swarm/Others.. $ docker service scale $ docker service stop $ docker service logs $ docker service rm And so on.. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  24. WebDriver vs. IDE vs. RC ➢ Data Warehouse is like a relational database designed for analytical needs. ➢ It functions on the basis of OLAP (Online Analytical Processing). ➢ It is a central location where consolidated data from multiple locations (databases) are stored.

More Related