centos7下安裝 docker
1、解除安裝舊版本
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
2、安裝所需的軟體包
yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
3、設定穩定的儲存庫
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
4、安裝最新版本的Docker
yum install docker-ce docker-ce-cli containerd.io
5、啟動Docker
systemctl enable docker
systemctl start docker
6、測試
docker run hello-world
安裝docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
相關文章
- centos7下docker安裝CentOSDocker
- Centos7下安裝DockerCentOSDocker
- Centos7下解除安裝dockerCentOSDocker
- CentOS7下安裝Docker-ComposeCentOSDocker
- CentOS7 安裝 dockerCentOSDocker
- centos7安裝dockerCentOSDocker
- Centos7安裝安裝部署dockerCentOSDocker
- centos7 docker 安裝教程CentOSDocker
- centos7快速安裝dockerCentOSDocker
- centOs7安裝最新dockerCentOSDocker
- Centos7上安裝dockerCentOSDocker
- Centos7安裝Docker EngineCentOSDocker
- Centos7 yum安裝 DockerCentOSDocker
- CentOS7 docker docker-Composer 安裝CentOSDocker
- CentOS7下安裝Docker-Compose操作記錄CentOSDocker
- CentOS7 docker安裝部署教程CentOSDocker
- Docker-CE 安裝(centos7)DockerCentOS
- 在Centos7上安裝DockerCentOSDocker
- docker:安裝centos7映象(六)DockerCentOS
- Centos7 安裝 Docker 詳細教程CentOSDocker
- CentOS7上安裝和使用DockerCentOSDocker
- Centos7編譯安裝Docker教程。CentOS編譯Docker
- centos7 安裝docker-composeCentOSDocker
- Centos7安裝docker倉庫HarborCentOSDocker
- centos7安裝docker詳細教程CentOSDocker
- Docker架構及在Centos7上安裝dockerDocker架構CentOS
- CentOS7 下安裝 ElasticsearchCentOSElasticsearch
- centos7下安裝ffmpegCentOS
- centos7下安裝phpCentOSPHP
- CentOS7利用docker安裝MySQL5.7CentOSDockerMySql
- CentOS7安裝Docker並配置映象加速CentOSDocker
- centos下安裝dockerCentOSDocker
- docker 下安裝postgresqlDockerSQL
- docker下安裝NginxDockerNginx
- centos7下cobbler安裝配置CentOS
- centos7 下安裝 nodejsCentOSNodeJS
- centos7下安裝tensorflowCentOS
- Centos7下安裝配置RedsocksCentOS