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安裝dockerCentOSDocker
- CentOS7 docker docker-Composer 安裝CentOSDocker
- centos7快速安裝dockerCentOSDocker
- Centos7上安裝dockerCentOSDocker
- centos7 docker 安裝教程CentOSDocker
- centOs7安裝最新dockerCentOSDocker
- CentOS7下安裝Docker-Compose操作記錄CentOSDocker
- 在Centos7上安裝DockerCentOSDocker
- CentOS7 docker安裝部署教程CentOSDocker
- docker:安裝centos7映象(六)DockerCentOS
- Docker-CE 安裝(centos7)DockerCentOS
- Centos7編譯安裝Docker教程。CentOS編譯Docker
- centos7安裝docker詳細教程CentOSDocker
- Centos7安裝docker倉庫HarborCentOSDocker
- CentOS7上安裝和使用DockerCentOSDocker
- Centos7 安裝 Docker 詳細教程CentOSDocker
- Docker架構及在Centos7上安裝dockerDocker架構CentOS
- centos7下安裝ffmpegCentOS
- CentOS7 下安裝 ElasticsearchCentOSElasticsearch
- centos7下安裝phpCentOSPHP
- centos7 下安裝 nodejsCentOSNodeJS
- docker下安裝NginxDockerNginx
- docker 下安裝postgresqlDockerSQL
- centos下安裝dockerCentOSDocker
- linux下安裝dockerLinuxDocker
- CentOS7安裝Docker並配置映象加速CentOSDocker
- Centos7安裝jenkins+docker部署tomcatCentOSJenkinsDockerTomcat
- CentOS7利用docker安裝MySQL5.7CentOSDockerMySql
- Linux(Centos7)安裝Docker 社群(ce)版LinuxCentOSDocker
- centos7下cobbler安裝配置CentOS
- CentOS7使用Docker安裝STF安卓裝置管理平臺CentOSDocker安卓
- Linux 下的 Docker 安裝與使用 Docker-compose 安裝LinuxDocker
- 一行命令安裝docker和docker-compose(CentOS7)DockerCentOS
- Linux 下 docker 安裝 MySQLLinuxDockerMySql
- centos 下docker映象安裝CentOSDocker