Skip to content

Commit

Permalink
fix(*): Use cgroupfs driver in both host and builder docker.
Browse files Browse the repository at this point in the history
The (CorOS) default of systemd might have some problems.
See also coreos/bugs#1435
moby/moby#21444 and
moby/moby#21678
  • Loading branch information
nathansamson committed Jul 25, 2016
1 parent a219a27 commit 2df40c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builder/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func Start(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt) {
"192.168.0.0/16",
"--insecure-registry",
"100.64.0.0/10",
"--exec-opt",
"native.cgroupdriver=cgroupfs",
}

// For overlay-ish filesystems, force the overlay to kick in if it exists.
Expand Down
8 changes: 8 additions & 0 deletions contrib/coreos/user-data.example
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ coreos:
enable: false
- name: docker.service
drop-ins:
- name: 00-reset-environment.conf
content: |
[Service]
Environment=
- name: 10-require-flannel.conf
content: |
[Unit]
Expand All @@ -52,6 +56,10 @@ coreos:
content: |
[Service]
Environment="DOCKER_OPTS=--insecure-registry 10.0.0.0/8 --insecure-registry 172.16.0.0/12 --insecure-registry 192.168.0.0/16 --insecure-registry 100.64.0.0/10"
- name: 60-cgroup-driver.conf
content: |
[Service]
Environment="DOCKER_CGROUPS=--exec-opt native.cgroupdriver=cgroupfs"
- name: flanneld.service
command: start
drop-ins:
Expand Down

0 comments on commit 2df40c6

Please sign in to comment.