官术网_书友最值得收藏!

Development life cycle

The Docker development life cycle can be explained with the help of the following steps:

  1. Docker container development starts with downloading a base image from Docker Hub. Ubuntu and Fedora are a few images available from Docker Hub. An application can be containerized post application development too. It is not necessary to always start with Dockerizing the application.
  2. The image is customized as per application requirement using a few Docker-specific instructions. These sets of instructions are stored in a file called Dockerfile. When deployed the Docker daemon reads the Dockerfile and prepares the final image.
  3. The image can then be published to a public/private repository.
  4. When users run the following command on any Docker host, the Docker daemon searches for images on the local machine first and then on Docker Hub if the images are not found locally. A Docker container is created if the image is found. Once the container is up and running, [command] is called on the running container:
       $ docker run -i -t [imagename] [command]
主站蜘蛛池模板: 木兰县| 吉林市| 洱源县| 搜索| 镇雄县| 吉水县| 平顺县| 习水县| 阿拉善左旗| 闽清县| 蒲江县| 普安县| 桐庐县| 镇远县| 铁岭县| 东乌| 盐边县| 普定县| 湟中县| 喀喇沁旗| 阿合奇县| 张家口市| 新泰市| 巫溪县| 治县。| 师宗县| 乌鲁木齐市| 杭锦后旗| 卫辉市| 武陟县| 塔河县| 休宁县| 林芝县| 张掖市| 平利县| 丹寨县| 金阳县| 汤阴县| 达拉特旗| 达孜县| 色达县|