Last active
May 8, 2017 01:17
-
-
Save raugustinus/f5ab05b9ad4584b37d61 to your computer and use it in GitHub Desktop.
coreos cloud-config static ip address with docker remote API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa AAAA.... [email protected] | |
coreos: | |
units: | |
- name: docker-tcp.socket | |
command: start | |
enable: yes | |
content: | | |
[Unit] | |
Description=Docker Socket for the API | |
[Socket] | |
ListenStream=2375 | |
BindIPv6Only=both | |
Service=docker.service | |
[Install] | |
WantedBy=sockets.target | |
- name: enable-docker-tcp.service | |
command: start | |
content: | | |
[Unit] | |
Description=Enable the Docker Socket for the API | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/systemctl enable docker-tcp.socket | |
- name: static.network | |
runtime: true | |
content: | | |
[Match] | |
Name=eno167* | |
[Network] | |
DNS=192.168.51.2 | |
Address=192.168.51.100/24 | |
Gateway=192.168.51.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment