Docker Community Forums

Share and learn in the Docker community.

Docker image installation directory on CentOS 7


(Zerros) #1

Hi,

Forgive me for my bad english. I want to change the image instalaltion directory. I have found a lot of tuto over the net about that, but all are mentionning to edit the /etc/sysconfig/docker to add options -g.

On my server, I do not have this file. I have created with the other_args="-g /…", but it’s not working. Is there another solution else to chhange the directory ?

Containers: 0
Images: 0
Server Version: 1.9.1
Storage Driver: devicemapper
 Pool Name: docker-253:6-3209-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 107.4 GB
 Backing Filesystem: 
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 53.74 MB
 Data Space Total: 107.4 GB
 Data Space Available: 3.378 GB
 Metadata Space Used: 606.2 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.10.0-229.20.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 2
Total Memory: 1.794 GiB
Name: nyx1
ID: xxxxxx

Thanks.


(Zerros) #2

I have finally found: https://docs.docker.com/engine/articles/systemd/

so goood.