Skip to content

Instantly share code, notes, and snippets.

View robszumski's full-sized avatar

Rob Szumski robszumski

View GitHub Profile
@philips
philips / gist:6998454
Last active December 25, 2015 15:29
Using a port in the service file name

Create simplehttp@.service

cat > simplehttp@.service
[Unit]
Description=Serves stuff over http

[Service]
ExecStart=/usr/bin/docker run -p %I:8080 b88a40f29dd7

This is a temporary workaround to have etcd listening on all interfaces so you can access it from docker containers.

Add a local etcd unit file

Create a file called /media/state/units/etcd-local.service that has the following contents:

[Unit]
Description=etcd local