docker安装
yum -y install docker
出现
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: missing command ‘podman COMMAND’
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
podman version 3.0.2-dev
默认安装带podman所以先卸载
yum remove docker
阿里云服务器正确的安装方式
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
yum install docker-ce -y
这时候docker -v验证一下即可
docker compose安装
国外的镜像下载不下来于是乎换了国内镜像下载
sudo curl -L “https://get.daocloud.io/docker/compose/releases/download/1.24.1/docker-compose-
(
u
n
a
m
e
−
s
)
−
(uname -s)-
(uname−s)−(uname -m)” -o /usr/local/bin/docker-compose
成功安装