Ubuntu 15.04, Systemd, Docker and DOCKER_OPTS

Posted: May 20, 2015 in Docker, Ubuntu
Tags: , , , ,

When you’re running Ubuntu 15.04 with Docker, you must use systemctl to enable/disable your Docker service. Unfortunately, the old /etc/default/docker configuration file is not read. You must change the docker.service file and add these lines:

....

[Service]
EnvironmentFile=-/etc/default/docker
ExecStart=/usr/bin/docker -d -H fd:// $DOCKER_OPTS
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity

....

(On my Ubuntu 15.04 system, the file resides at /etc/systemd/system/multi-user.target.wants/)

Restart Docker with:

$ sudo systemctl restart docker 
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s