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

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]
主站蜘蛛池模板: 来安县| 绥中县| 旬阳县| 祁阳县| 阳东县| 高青县| 昌乐县| 兴安盟| 青铜峡市| 万荣县| 岚皋县| 阿城市| 漳州市| 盐山县| 柘城县| 绥芬河市| 正阳县| 平武县| 汶上县| 米泉市| 新营市| 永泰县| 潢川县| 永定县| 白山市| 泰宁县| 抚顺市| 乌拉特前旗| 张家港市| 兴山县| 嘉兴市| 布尔津县| 藁城市| 乌恰县| 红安县| 岑溪市| 于都县| 乌审旗| 伊金霍洛旗| 商洛市| 锦州市|