1. 安装openssh-server
yum install openssh-server
2. 修改/etc/ssh/sshd_config
Port 22
PasswordAuthentication yes
PermitRootLogin yes
分类目录归档:Docker
yum install openssh-server
Port 22
PasswordAuthentication yes
PermitRootLogin yes
FROM centos:7
ENV container docker
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/sy
如果开启了firewall,要加上 firewall-cmd --zone=trusted --add-source=172.22.0.1/16 --permanent
cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://pee6w651.mirror.aliyuncs.com"]
}
systemctl restart docker
这里选择12c
sudo docker pull sath89/oracle-12c
sudo docker run -d --name oracle -p
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine