Docker
安装docker
安装前的一些操作
# vim /etc/default/daemon.json或者/etc/docker/daemon.json
{
"data-root": "/new/location"
}
# 改变docker启动
vim /lib/systemd/system/docker.service
增加data-root选项:
ExecStart=/usr/bin/dockerd --data-root /share/duanyunzhi/docker-data -H fd:// --containerd=/run/containerd/containerd.sock
# 运行
systemctl daemon-reload
systemctl restart docker
docker info看docker root data
```shell
设置tmp临时目录到.bashrc
export TMPDIR=/path/to/large/path
#### 开启关闭
```shell
sudo systemctl start docker
sudo systemctl stop docker.socket
查看containr启动log
docker logs -f containedr_id
run container
me