0
点赞
收藏
分享

微信扫一扫

ubuntu之docker安装

彩虹_bd07 2023-09-25 阅读 30

docker仓库

https://www.daocloud.io/(需要注册账号可以使用这个加速器)

me:debuging

https://hub.docker.com/explore/

https://registry.docker-cn.com

1.检查内核版本(必须大于内核LINUX3.10)

root@qunxin1:/etc/docker/registry# uname -r

4.4.0-116-generic

2.更新软件(最新版本)

sudo apt-get update

3.安装docker

sudo apt-get install -y docker.io

4.版本查看

docker version

5.启动

sudo service docker start

sudo service docker stop

sudo service docker restart

6.查看所有docker 镜像

docker images

7.获取镜像

docker pull hello-world

8.运行镜像

docker run hello-world

9.设置国内的镜像仓库

vi /etc/docker/daemon.json

{

"registry-mirrors": ["https://registry.docker-cn.com"]

}

daocloud加速器:

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io

举报

相关推荐

0 条评论