Comitup and Docker - Tutorial #174
davesteele
started this conversation in
General
Replies: 1 comment
-
Note that, when in appliance mode, the upstream connection is NAT'd, which can interfere with inbound connections. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, Comitup routinely modifes network interface states and configurations, and insists on owning port 80 at least some of the time. These things can affect the healthy life-cycle of a typical Docker container. Here is a way to work around the problem by running the container only when Comitup is in the CONNECTED state
Start with a Pi running a Comitup Image, and connect to an upstream Access Point.
Install docker.
Let's run a simple demonstration web-serving container, borrowed from this article. Call it demo:
Edit /etc/comitup.conf to enable the state change callback:
Create and configure the docker control script:
Reboot the Pi. The demo website should be accessible when the device is CONNECTED.
Beta Was this translation helpful? Give feedback.
All reactions