直接贴代码了: Dockfile: # Version 0.1 FROM kuba_centos7 MAINTAINER kuba si812cn@163.com # This is the release of Consul to pull in. ENV CONSUL_VERSION=1.4.0 # This is the location of the releases. ENV HASHICORP_RELEASES=https://releases.hashicorp.com # Cre…
方法一:基于commit命令创建 1.首先,从docker的源中查看我们需要的镜像,本案例中使用Ubuntu作为基础镜像. # federico @ linux in ~ [16:57:38] $ sudo docker search ubuntu NAME DESCRIPTION STARS OFFICIAL AUTOMATEDubuntu Ubuntu is a Debian-based Linux operating s... 6044 [OK] rastasheep/ubuntu-ssh…