如何修改 docker container log 目录?
PHP中文网
PHP中文网 2017-04-22 08:56:17
0
2
627

因为服务器的硬盘比较小,所以外挂了硬盘,但是不知道如何移植 docker container log 目录.

默认是 /var/lib/docker/container 想修改到 /storger/docker/container 里。

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
巴扎黑
  1. Set the directory path as the root directory when Docker is running
    docker --graph={path}

阿神

You can stop docker and move the directory there, then use ln -s to create a link

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!