Docker image versioning and lifecycle management -


i getting docker , trying better understand how works out there in "real world".

it occurs me that, in practice:

  • you need way version docker images
  • you need way tell docker engine (running on vm) stop/start/restart particular container
  • you need way tell docker engine version of image run

does docker ship built-in commands handling each of these? if not tools/strategies used accomplishing them? also, when build docker image (via, say, docker build -t myapp .), file type produced , located on machine?

docker has need build images , run containers. can create own image writing dockerfile or pulling docker hub.

in dockerfile specify image basis image, run command install things. images can have tags, example ubuntu image can have latest or 12.04 tag, can specified ubuntu:latest notation.

once have built image docker build -t image-name . can create containers image `docker run --name container-name image-name.

docker ps see running containers

docker rm <container name/id> remove containers


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -