Description of problem:
For el6, epel's docker build creates /etc/sysconfig/docker, which allows other options to be passed to the docker daemon. the systemd unit files for epel7's docker build do not.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install docker-io
2. less /usr/lib/systemd/system/docker.service
There is no $other_args defined in the systemd unit file, nor is there an /etc/sysconfig/docker in which to define the options.
Same as the el6 docker. You should be able to pass additional arguments for bridging, dns, or restart options
After poking around systemd a bit more, it appears that this can be done systemd internals by creating /etc/systemd/system/docker.service.d/bridge.conf or similar with the options I need. This option doesn't appear to be documented well, but it seems to work fine and be the 'proper' way.
Jim can you document this? So we can add it to the docker package? Should we add a /etc/systemd/system/docker.service.d/ to the docker package?
I'll try to document something sane for this.
I'm not certain that adding the directory to the package is 'proper', as no other packages appear to provide similar directories. It's possible it should simply go into /usr/share/doc/docker-io-*/ as an options example file.
OK that sounds good. BTW In rhel7 the package will be called docker not docker-io. Which I wish we would fix in Fedora and RHEL6/Centos6.
I can't find any docker package on rhel7. docker-io is there (version 1.0.0-1.el7) but /etc/sysconfig/docker seems to be an HTML page...
I'll check the docs in /usr/share/doc/docker-io*
And I can't use any more (it seems) the HTTP_PROXY env variable. docker tries to resolv docker.io...
You need to enable the extras repo.
I think you do this via
# subscription-manager repos --enable=rhel-x86_64-server-extras-7
# subscription-manager repos --enable=rhel-x86_64-server-optional-7
This package is being removed from EPEL since there is now a supported version of docker in the released rhel7 repositories.