centos安装docker docker-compose
1.docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
然后尝试
docker ps
如果说权限有问题,去官网https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
sudo groupadd docker
sudo usermod -aG docker $USER
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
sudo systemctl restart docker.service
2 pip
2.7版
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py
3.X版
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py
3 docker-compose
pip install docker-compose
4 ifconfig
yum install net-tools.x86_64
—————————————