centos7 离线安装 docker
所属分类 docker
浏览量 603
下载docker
https://download.docker.com/linux/static/stable/x86_64/
docker-20.10.9.tgz
解压 把 可执行文件 全部复制到 /usr/bin/
cp * /usr/bin/
cp docker.service /etc/systemd/system/
cp daemon.json /etc/docker/
cat /etc/systemd/system/docker.service
cat /etc/docker/daemon.json
systemctl daemon-reload
systemctl enable docker.service
systemctl start docker
systemctl stop docker
systemctl restart docker
systemctl status docker
systemctl status docker.service
服务 unit 默认后缀 .service
查看日志
journalctl -xe
journalctl -u docker
journalctl -u docker.service
docker pull hello-world
docker run hello-world
可直接 docker run hello-wrold
docker images
docker rmi hello-world -f
daemon.json
{
"registry-mirrors": ["http://192.168.0.9:8888"],"graph":"/data"
}
docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=notify
ExecStart=/usr/bin/dockerd --selinux-enabled=false
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TimeoutStartSec=0
Delegate=yes
KillMode=process
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s
[Install]
WantedBy=multi-user.target
docker设置镜像仓库
docker常用命令
docker命令实战
linux服务器信息查看
上一篇
下一篇
k8s容器编排基础概念
服务网格 Service Mesh 背景和概念
istio服务网格快速入门
实用的财经网站
计算机网络笔记
springboot应用打docker镜像