centOS(同redhat)安裝 docker
安裝
- 檢查版本:uname -r
- 切換到管理身份: su
- 升級補丁: apt-get update
- 安裝docker:
方式一:apt-get install -y docker.io
方式二(安裝最新版): curl -s https://get.docker.com|sh- 安裝完成檢查: docker version
這時候看到只有client版本- docker啟動 :service docker start
- 再次檢查: docker version
這時候看到client和server版本
初體驗
拉取映象:docker pull [OPTIONS] name[:TAG]
檢視本機映象: docker iamges [OPTIONS] [REPOSITORY] [:TAG]
預設是從hub.docker.com倉庫去拉取
第一個docker容器:
拉取格式:docker pull [OPTIONS] name[:TAG]
拉取樣例:docker pull hello-world
拉取結束後檢查: docker iamges
執行格式:docker run [OPTIONS] IMAGE [:TAG] [COMMAND][ARG...]
執行樣例:docker run hello-world
相關文章
- redhat安裝dockerRedhatDocker
- CentOS Docker 安裝CentOSDocker
- CentOS 安裝 dockerCentOSDocker
- centos下安裝dockerCentOSDocker
- Centos 7 Docker 安裝CentOSDocker
- Centos 安裝 Docker|教程CentOSDocker
- CentOS 8.4安裝DockerCentOSDocker
- Centos7或RedHat7下安裝MysqlCentOSRedhatMySql
- Centos Docker安裝、升級、解除安裝CentOSDocker
- Centos7.9安裝解除安裝DockerCentOSDocker
- Centos7安裝安裝部署dockerCentOSDocker
- Docker教程之四CentOS安裝DockerDockerCentOS
- docker學習1:CentOS Docker 安裝DockerCentOS
- Centos 7 安裝 Docker 與 Docker ComposeCentOSDocker
- 在CentOS上安裝dockerCentOSDocker
- centos 下docker映象安裝CentOSDocker
- CentOS系統安裝dockerCentOSDocker
- docker的安裝(linux、centos)DockerLinuxCentOS
- CentOS7 安裝 dockerCentOSDocker
- centos7安裝dockerCentOSDocker
- Centos7.9 安裝 DockerCentOSDocker
- centos 線上安裝 dockerCentOSDocker
- 76-CentOS Docker 安裝CentOSDocker
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql
- Linux CentOS 安裝 docker 和 docker-composeLinuxCentOSDocker
- CentOS7 docker docker-Composer 安裝CentOSDocker
- Centos7.9安裝Docker和Docker composeCentOSDocker
- centos7快速安裝dockerCentOSDocker
- Centos7上安裝dockerCentOSDocker
- CentOS中利用Docker安裝RedisCentOSDockerRedis
- centos7 docker 安裝教程CentOSDocker
- 在CentOS 8.1上安裝 DockerCentOSDocker
- Centos 7 安裝 docker-composeCentOSDocker
- linux centos8安裝dockerLinuxCentOSDocker
- centos7下安裝 dockerCentOSDocker
- centOs7安裝最新dockerCentOSDocker
- centos7下docker安裝CentOSDocker