ubuntu系统docker和安装,并安装docker-compose
- 安装docker
apt install docker.io
- 设置docker为开机自启
systemctl enable docker
- 安装docker-compose
apt install docker-compose
- 修改配置,设置国内镜像仓库和本地镜像仓库
vi /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu.cn"],
"insecure-registries":["1.88.149.108:61010", "harbor.xxx.com:40180"]
}
-
重启docker
systemctl restart docke
-
登录harbor
docker login harbor.xxx.com:40180
-
测试是否安装成功
docker -v
docer-compose -v
标签:compose,harbor,安装,ubuntu,docker,com
From: https://www.cnblogs.com/jackson1024/p/17613675.html