Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Daemon #30

Open
whatever4711 opened this issue May 10, 2016 · 2 comments
Open

Docker Daemon #30

whatever4711 opened this issue May 10, 2016 · 2 comments

Comments

@whatever4711
Copy link
Collaborator

By default, the Docker Daemon is started with ExecStart=/usr/bin/docker daemon -H fd://. This behavior must be overwritten to be applicable to a json configuration.
I suggest to write a file in /etc/systemd/system/docker.service.d containing

[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon

It modifies the default start behavior. Beware to call systemctl daemon-reload before starting docker again.

@Govinda-Fichtner
Copy link
Collaborator

@whatever4711 This hypriot/image-builder-rpi@3c0ad0a commit ensures that it will work with the latest image out of the box.

For the standalone use (e.g. installation via package) we still need to determine what the best way is to handle this...

@whatever4711
Copy link
Collaborator Author

whatever4711 commented May 11, 2016

@Govinda-Fichtner Just discussed with @firecyberice that we will open a PR to docker.

For all others confronted with this error while starting clusterlab on non Hypriot-OS devices, execute the following script as superuser before running clusterlab:

#!/bin/sh
echo "Creating default daemon.json"
cat << EOF > /etc/docker/daemon.json
{
    "hosts": ["fd://"]
}
EOF

echo "Overwriting systemd docker daemon startup"
mkdir -p /etc/systemd/system/docker.service.d
cat << EOF > /etc/systemd/system/docker.service.d/clusterlab.conf
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon
EOF

echo "Reloading systemd and restarting docker"
systemctl daemon-reload
systemctl restart docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants