1.Container安装ssh服务,博主的linux是centos ① 安装ssh sudo yum install openssh-server #安装ssh服务器 service sshd status # 查看ssh服务启动情况 service sshd start # 启动ssh服务 ② 配置ssh,允许root登陆 vi /etc/ssh/sshd_config 将 PermitRootLogin 的值从 withoutPassword 改为 yes ③ 重启ssh服务 servic
1.Start a container running Consul: Here we use this image: https://hub.docker.com/r/progrium/consul/ $ docker run -it -h node -p 8500:8500 -p 53:53/udp progrium/consul -server -bootstrap -advertise $DOCKER_IP How to check that Consul is running: Me