Skip to main content

Posts

Showing posts from May 7, 2017

Docker Commands: docker run

Docker Commands: docker run docker run debian ls -ls What does the above command do? When you supply the run argument, the Docker daemon finds the image (debian in this case), creates the container and then runs ls -ls command in that container. In this case, ls -ls is an argument passed on to the container executable (debian), and you see the following: Note: If the image does not exist locally, an attempt is made to automatically download it from the repository: docker run -it alpine /bin/sh When you run this command, Docker daemon does the following: Runs the alpine image : If the image exists locally, Docker daemon uses it for the new container. Otherwise, Docker Engine pulls it from a registry, e.g. Docker Hub Creates a new container : Docker allocates a filesystem and mounts a read-write layer on top of the image. Configures the container : Creates a network bridge i

Docker Commands: docker images

Docker Commands: docker images $ docker images Lists all images on the local host Licensed under a Creative Commons Attribution 4.0 International License .

Docker Commands: docker help

Docker Commands: docker help docker run --help See a list of all flags supported by the run argument. In general, you can append the --help option to any Docker command for more information, e.g. docker --help or docker <command> --help Licensed under a Creative Commons Attribution 4.0 International License .

Docker Commands: docker pull

Docker Commands: docker pull docker pull <image> Docker will connect to the Docker Hub and attempt to pull, i.e. download and install, an <image> locally. E.g. docker pull ubuntu downloads and installs the latest version of the image named ubuntu from Docker Hub. Note: The above command downloads the most up-to-date version of ubuntu image, or to be technically correct, it pulls (or downloads) from the Docker Hub, the ubuntu image that is either untagged or has the tag latest . Licensed under a Creative Commons Attribution 4.0 International License .

Docker Hub: Tags

Docker Hub: tags To see a list of tags or version identifiers associated with an image , connect to Docker Hub : and see its Description, e.g.: Licensed under a Creative Commons Attribution 4.0 International License .

Installation Requirements

Installation Requirements Platform: Linux: Any distribution running version 3.10+ of the Linux kernel Specific instructions are available for most Linux distributions, including RHEL, Ubuntu, SuSE, and many others. Microsoft Windows: Windows Server 2016 Windows 10 Cloud: Amazon EC2 Google Compute Engine Microsoft Azure Rackspace References: https://docs.docker.com/engine/faq/ Licensed under a Creative Commons Attribution 4.0 International License .

Docker Word Cloud

Be sure to comment , follow and/or recommend this blog! WordClouds.com was used to create this Docker Word Cloud. Licensed under a Creative Commons Attribution 4.0 International License .