Created
October 27, 2016 13:53
-
-
Save frankmanzhu/6a528d4840bf794e937b903f7f8c6a31 to your computer and use it in GitHub Desktop.
Centos 7 private docker repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In my CentOS Linux release 7.1.1503 (Core) | |
The following configuration is working. | |
file: /lib/systemd/system/docker.service text: | |
[Unit] | |
Description=Docker Application Container Engine | |
Documentation=https://docs.docker.com | |
After=network.target docker.socket | |
Requires=docker.socket | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/docker | |
ExecStart=/usr/bin/docker -d $other_args -H fd:// | |
MountFlags=slave | |
LimitNOFILE=1048576 | |
LimitNPROC=1048576 | |
LimitCORE=infinity | |
[Install] | |
WantedBy=multi-user.target | |
check here >> EnvironmentFile=-/etc/sysconfig/docker | |
check here >> ExecStart=/usr/bin/docker -d $other_args -H fd:// | |
file: /etc/sysconfig/docker text: | |
# /etc/sysconfig/docker | |
# | |
# Other arguments to pass to the docker daemon process | |
# These will be parsed by the sysv initscript and appended | |
# to the arguments list passed to docker -d | |
other_args="--insecure-registry yoururl" | |
set registry address >> other_args="--insecure-registry yoururl" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment