Posts Tagged ‘systemd’

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 

Ubuntu 15.04 and Docker 1.6.0

Posted: April 27, 2015 in Docker, Ubuntu
Tags: , , ,

When you upgrade to Ubuntu 15.04 and install docker using the get.docker.io script, you’ll probably run into an error like “Are you trying to connect to a TLS-enabled daemon without TLS?”.

Ubuntu 15.04 changed to systemd and you should enable docker with this command:

$ systemctl enable docker

Restart your computer, and it should be working.