Docker Image

#202110201636 Image is simply a template for building #202203281423. It simplifies the software deployment in Linux distributions by the DevOps.

CLI

There are various #202110201636 commands that interact with the Docker Image.

We could download a specific image from #202203251430 by executing docker pull {registry}/{username}/{image-name} without having the #202203281423 running. If specific version of image should be pulled, define the tag in the format {image-name}:{tag}. Otherwise, it will always pull the latest tag version of the image.

We could rename the image by using the command docker image tag {source-image}:{tag} {target-image}:{tag}.

Listing all the local installed images could be achieved by calling the command docker images.

To remove an image from the local machine, pass in the image name to the command docker rmi {image-name}. However, all the containers that is dependent on this image must not be running at the time the command called. If so, the image will persist instead of being removed.

Links to this page
  • Docker Service

    We can create multiple instances of an application within a cluster by calling the command docker service create --replicas={number} {image-name} with the corresponding 202202211632.

  • Docker Registry

    Name your 202202211632 with tag command and push it to the registry.

  • Docker File

    The file above could be built into #202202211632 using the command docker build {filename}. The tag name that associated with this build could be specified by the option -t.

  • Docker Container

    Docker Container is a running instance of a 202202211632#. There are various 202110201636# commands that interact with the 202204071114#.

    To start a container instance, run the command docker run {image-name}. If the 202202211632# does not exist in the local machine, it will instead pull from remote or local repository, and then run it afterwards if the pull is successful. See 202202211632 for more information about the docker pull. If specific version of image should be downloaded, define the tag in the format {image-name}:{tag}. Otherwise, it will always download the latest tag version of the image.

  • Docker CLI
  • Docker

    On the above, aufs could be any running storage driver supported by 202203251354# that store its information. containers stores information about #202204071114. image stores information about 202202211632#. volumes store any 202203251354#.

#container