Docker.github.io: Instructions fail for making the docker engine listen on a tcp port (as well as a unix socket)

Created on 17 Mar 2017  路  9Comments  路  Source: docker/docker.github.io

File: engine/admin/systemd.md

I have an installation on a raspberry pi (using raspbian jessie), and am trying to follow instructions to make the docker engine listen on a tcp port (as well as a unix socket). As this section suggests, I created the /etc/docker/daemon.json file and added a "hosts": ["tcp://0.0.0.0:4243", "unix:///var/run/docker.sock"] entry. However, this approach fails with a message that says that there is an entry in the config file trying to override the flags passed to the daemon on startup. I think this is because /lib/systemd/system/docker.service starts the service with the the flag -H fd://

It is not clear the correct approach here, but the documentation just doesn't match. I am worried that editing /lib/systemd/system/docker.service to remove the flags will just get overwritten on the next upgrade. Perhaps the debian package should provide a small daemon.json file rather than provide flags on the start

areEngine

All 9 comments

Checking this out! @johndmulhausen @mstanleyjones @londoncalling

@NonCreature0714 adding hackathon labels for you.

This is taking me a while to work through, I'm going to have to take this home tonight so I can connect to my own network.

Still working through this! It's a tad more time consuming that I expected.

Any luck, @NonCreature0714 ? Let me know if you are not ready to submit a PR for this one and I'll remove it from the Hackathon milestone. You can feel free to keep working through it, though!

@mstanleyjones I'm still working on it, but I've been super busy! I'll dedicate time to it this afternoon! I'd like to see it through.

@mstanleyjones I re-read your comment - I'm not ready to submit a PR at this time, sorry that wasn't clear! I hope to submit one tonight, but I'm aware that's probably after the Hackathon is over!

@NonCreature0714 what happened to this?

@akc42 I'm in finals, so have been extremely busy. Otherwise, no change of plans, just had other priorities come up.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mdlinville picture mdlinville  路  3Comments

Mararesliu picture Mararesliu  路  4Comments

thunder1902 picture thunder1902  路  3Comments

KantarBruceAdams picture KantarBruceAdams  路  4Comments

thaJeztah picture thaJeztah  路  4Comments