Docker image versioning and lifecycle management

I get into Docker and try to better understand how it works there, in the "real world".

It seems to me that in practice:

  • Do you need a way to display Docker images
  • You need to specify the Docker mechanism (running on the virtual machine) to stop / start / reload a specific container.
  • You need a way to tell the Docker engine the version to run

Does Docker support built-in commands to handle each of them? If not, what tools / strategies are used to implement them? Also, when I create a Docker image (via, say, docker build -t myapp . ), What type of file is created and where is it located on the machine?

+6
source share
1 answer

docker has everything you need to create images and launch containers. You can create your own image by writing a Docker file or pulling it out of the docker hub.

In the Dockerfile, you specify another image as the basis for your image, run the install things command. Images can have tags, for example, an ubuntu image can have the last tag, or a 12.04 tag, which can be specified using the ubuntu:latest designation.

After you have built the image using docker build -t image-name . , you can create containers from this image with the name `docker run -name container_name_name.

docker ps to see running containers

docker rm <container name/id> to remove containers

+2
source

All Articles