Skip to content

Commit 4a1beb1

Browse files
Gabriel MonroyMatthew Fisher
authored andcommitted
fix(docker): add docker-patch.service for symlink workaround
In order for data container to function properly, we need https://github.com/deis/docker/commit/3d9cd1e5f102d5e59011ec4baca2662f3dacbad4 Switching to a fork of docker built from: https://github.com/deis/docker
1 parent 859940d commit 4a1beb1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

contrib/coreos/user-data

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ coreos:
55
addr: 172.17.8.100:4001
66
peer-addr: 172.17.8.100:7001
77
units:
8+
- name: docker-patch.service
9+
command: start
10+
content: |
11+
[Unit]
12+
Description=patch /usr/bin/docker with an S3 binary
13+
14+
[Service]
15+
Type=oneshot
16+
ExecStart=/usr/bin/wget --no-check-certificate -q -O /home/core/docker.symlink-fix https://s3-us-west-2.amazonaws.com/deis/docker.symlink-fix
17+
ExecStartPost=/bin/chmod 0755 /home/core/docker.symlink-fix
18+
ExecStartPost=/bin/mount --bind /home/core/docker.symlink-fix /usr/bin/docker
19+
20+
[Install]
21+
WantedBy=multi-user.target
822
- name: docker.service
923
content: |
1024
[Unit]

0 commit comments

Comments
 (0)