在centos7 上使用centos7的docker镜像结果不能使用systemd,提示 Failed to get D-Bus connection: No connection to service manager. 解决方案在此, 另外这本docker中文指南不错,然而我只是想搭建一个php环境, 折腾了半天,终于做好一个lamp镜像了,居然500多m,比虚拟机只是少了一点. 容器和镜像的理解,其实可以这么理解,镜像是类,容器是实例.…
直接贴代码了: 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…