1.安装docker

bash <(curl -sL 'https://get.docker.com')

安装docker-compose

ubuntu

apt install docker-compose

2.设置ubuntu可以root ssh登录

vim /etc/ssh/sshd_config

修改

PermitRootLogin yes