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
- RedHat 7.4安裝DockerRedhatDocker
- CentOS Docker 安裝CentOSDocker
- CentOS 安裝 dockerCentOSDocker
- CentOS安裝DockerCentOSDocker
- RedHat Linux安裝CentOS YUMRedhatLinuxCentOS
- centos下安裝dockerCentOSDocker
- centos 線上安裝 dockerCentOSDocker
- CentOS 8.4安裝DockerCentOSDocker
- Docker Centos安裝OpensshDockerCentOS
- Centos 7 Docker 安裝CentOSDocker
- Centos 安裝 Docker|教程CentOSDocker
- Redhat/Centos6.x安裝ChromeRedhatCentOSChrome
- Docker教程之四CentOS安裝DockerDockerCentOS
- docker學習1:CentOS Docker 安裝DockerCentOS
- Centos Docker安裝、升級、解除安裝CentOSDocker
- Centos7安裝安裝部署dockerCentOSDocker
- Centos7.9安裝解除安裝DockerCentOSDocker
- CentOS7 安裝 dockerCentOSDocker
- centos 下docker映象安裝CentOSDocker
- 在CentOS上安裝dockerCentOSDocker
- 76-CentOS Docker 安裝CentOSDocker
- centos7安裝dockerCentOSDocker
- Centos6.5 Docker安裝CentOSDocker
- Docker centos 安裝syslogDockerCentOS
- Centos7.9 安裝 DockerCentOSDocker
- CentOS系統安裝dockerCentOSDocker
- Centos 7 安裝 Docker 與 Docker ComposeCentOSDocker
- centos7 docker 安裝教程CentOSDocker
- 在CentOS 8.1上安裝 DockerCentOSDocker
- centos7快速安裝dockerCentOSDocker
- centOs7安裝最新dockerCentOSDocker
- Centos7上安裝dockerCentOSDocker
- CentOS中利用Docker安裝RedisCentOSDockerRedis
- centos7下docker安裝CentOSDocker
- centos7下安裝 dockerCentOSDocker
- docker的安裝(linux、centos)DockerLinuxCentOS
- Centos7安裝Docker EngineCentOSDocker