Skip to content

Docker socket activation? #1058

Answered by jepio
altano asked this question in Q&A
Discussion options

You must be logged in to vote

How is this supposed to work? When my Flatcar VM boots up, ssh port 22 is open. So if I ssh in, docker.service starts up and ssh succeeds.

ssh'ing in is not going to start the docker.service. Running something that connects to the docker.socket will start it (like docker info). The idea is that if you don't need the docker.service, it won't start and won't run.

But if I have an http container, e.g. on port 9000, socket activation doesn't work. Port 9000 is filtered (presumably because docker.service is the thing that modifies the firewall to open that port for the container), so there is no socket activation and docker.service never starts. That means every time Flatcar reboots, I lose…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by altano
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants