LoginSignup
2
2

More than 5 years have passed since last update.

Dockerのインストールディレクトリを指定する(Ubuntu16.04LTS)

Last updated at Posted at 2017-06-23

現時点でのUbuntuでのベストソリューション。
CentOSなど別ディストリビューションではまた違う設定が必要そうなのでご注意を。

1./etc/docker/daemon.jsonを以下内容で作成してディレクトリを指定
※おそらく他の起動時オプションもここに設定すればOK


{
"graph": "/path/to/docker"
}

2.サービス再起動

sudo service docker restart

参考
https://forums.docker.com/t/how-do-i-change-the-docker-image-installation-directory/1169/21

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2