mirror of
https://github.com/rancher/os.git
synced 2025-07-17 00:21:03 +00:00
Update os-config for new system-docker
This commit is contained in:
parent
231ece3a9e
commit
48e9314d0c
@ -64,7 +64,7 @@ rancher:
|
|||||||
- /var/log:/var/log
|
- /var/log:/var/log
|
||||||
bootstrap_docker:
|
bootstrap_docker:
|
||||||
bridge: none
|
bridge: none
|
||||||
storage_driver: overlay
|
storage_driver: overlay2
|
||||||
restart: false
|
restart: false
|
||||||
graph: /var/lib/system-docker
|
graph: /var/lib/system-docker
|
||||||
group: root
|
group: root
|
||||||
@ -84,19 +84,86 @@ rancher:
|
|||||||
sysctl:
|
sysctl:
|
||||||
fs.file-max: 1000000000
|
fs.file-max: 1000000000
|
||||||
services:
|
services:
|
||||||
{{if eq "amd64" .ARCH -}}
|
command-volumes:
|
||||||
acpid:
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
image: {{.OS_REPO}}/os-acpid:{{.VERSION}}{{.SUFFIX}}
|
command: echo
|
||||||
command: /usr/sbin/acpid -f
|
|
||||||
labels:
|
labels:
|
||||||
|
io.rancher.os.createonly: "true"
|
||||||
io.rancher.os.scope: system
|
io.rancher.os.scope: system
|
||||||
net: host
|
log_driver: json-file
|
||||||
uts: host
|
net: none
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes_from:
|
read_only: true
|
||||||
- command-volumes
|
volumes:
|
||||||
- system-volumes
|
- /usr/bin/ros:/usr/bin/ros:ro
|
||||||
{{end -}}
|
- /usr/bin/system-docker:/usr/bin/system-docker:ro
|
||||||
|
- /usr/bin/system-docker-runc:/usr/bin/system-docker-runc:ro
|
||||||
|
system-volumes:
|
||||||
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
|
command: echo
|
||||||
|
labels:
|
||||||
|
io.rancher.os.createonly: "true"
|
||||||
|
io.rancher.os.scope: system
|
||||||
|
log_driver: json-file
|
||||||
|
net: none
|
||||||
|
privileged: true
|
||||||
|
read_only: true
|
||||||
|
volumes:
|
||||||
|
- /dev:/host/dev
|
||||||
|
- /etc/docker:/etc/docker
|
||||||
|
- /etc/hosts:/etc/hosts
|
||||||
|
- /etc/logrotate.d:/etc/logrotate.d
|
||||||
|
- /etc/resolv.conf:/etc/resolv.conf
|
||||||
|
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt.rancher
|
||||||
|
- /etc/selinux:/etc/selinux
|
||||||
|
- /lib/firmware:/lib/firmware
|
||||||
|
- /lib/modules:/lib/modules
|
||||||
|
- /run:/run
|
||||||
|
- /usr/share/ros:/usr/share/ros
|
||||||
|
- /var/lib/rancher/cache:/var/lib/rancher/cache
|
||||||
|
- /var/lib/rancher/conf:/var/lib/rancher/conf
|
||||||
|
- /var/lib/rancher:/var/lib/rancher
|
||||||
|
- /var/log:/var/log
|
||||||
|
- /var/run:/var/run
|
||||||
|
container-data-volumes:
|
||||||
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
|
command: echo
|
||||||
|
labels:
|
||||||
|
io.rancher.os.createonly: "true"
|
||||||
|
io.rancher.os.scope: system
|
||||||
|
log_driver: json-file
|
||||||
|
net: none
|
||||||
|
privileged: true
|
||||||
|
read_only: true
|
||||||
|
volumes:
|
||||||
|
- /var/lib/docker:/var/lib/docker
|
||||||
|
user-volumes:
|
||||||
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
|
command: echo
|
||||||
|
labels:
|
||||||
|
io.rancher.os.createonly: "true"
|
||||||
|
io.rancher.os.scope: system
|
||||||
|
log_driver: json-file
|
||||||
|
net: none
|
||||||
|
privileged: true
|
||||||
|
read_only: true
|
||||||
|
volumes:
|
||||||
|
- /home:/home
|
||||||
|
- /opt:/opt
|
||||||
|
- /var/lib/kubelet:/var/lib/kubelet
|
||||||
|
media-volumes:
|
||||||
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
|
command: echo
|
||||||
|
labels:
|
||||||
|
io.rancher.os.createonly: "true"
|
||||||
|
io.rancher.os.scope: system
|
||||||
|
log_driver: json-file
|
||||||
|
net: none
|
||||||
|
privileged: true
|
||||||
|
read_only: true
|
||||||
|
volumes:
|
||||||
|
- /media:/media:shared
|
||||||
|
- /mnt:/mnt:shared
|
||||||
all-volumes:
|
all-volumes:
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
command: echo
|
command: echo
|
||||||
@ -114,6 +181,19 @@ rancher:
|
|||||||
- media-volumes
|
- media-volumes
|
||||||
- user-volumes
|
- user-volumes
|
||||||
- system-volumes
|
- system-volumes
|
||||||
|
{{if eq "amd64" .ARCH -}}
|
||||||
|
acpid:
|
||||||
|
image: {{.OS_REPO}}/os-acpid:{{.VERSION}}{{.SUFFIX}}
|
||||||
|
command: /usr/sbin/acpid -f
|
||||||
|
labels:
|
||||||
|
io.rancher.os.scope: system
|
||||||
|
net: host
|
||||||
|
uts: host
|
||||||
|
privileged: true
|
||||||
|
volumes_from:
|
||||||
|
- command-volumes
|
||||||
|
- system-volumes
|
||||||
|
{{end -}}
|
||||||
cloud-init-execute:
|
cloud-init-execute:
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
command: cloud-init-execute -pre-console
|
command: cloud-init-execute -pre-console
|
||||||
@ -127,18 +207,6 @@ rancher:
|
|||||||
volumes_from:
|
volumes_from:
|
||||||
- system-volumes
|
- system-volumes
|
||||||
volumes:
|
volumes:
|
||||||
- /usr/bin/ros:/usr/bin/ros
|
|
||||||
command-volumes:
|
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
||||||
command: echo
|
|
||||||
labels:
|
|
||||||
io.rancher.os.createonly: "true"
|
|
||||||
io.rancher.os.scope: system
|
|
||||||
log_driver: json-file
|
|
||||||
net: none
|
|
||||||
privileged: true
|
|
||||||
read_only: true
|
|
||||||
volumes:
|
|
||||||
- /usr/bin/ros:/usr/bin/ros:ro
|
- /usr/bin/ros:/usr/bin/ros:ro
|
||||||
console:
|
console:
|
||||||
image: {{.OS_REPO}}/os-console:{{.VERSION}}{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-console:{{.VERSION}}{{.SUFFIX}}
|
||||||
@ -162,18 +230,6 @@ rancher:
|
|||||||
- all-volumes
|
- all-volumes
|
||||||
volumes:
|
volumes:
|
||||||
- /usr/bin/iptables:/sbin/iptables:ro
|
- /usr/bin/iptables:/sbin/iptables:ro
|
||||||
container-data-volumes:
|
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
||||||
command: echo
|
|
||||||
labels:
|
|
||||||
io.rancher.os.createonly: "true"
|
|
||||||
io.rancher.os.scope: system
|
|
||||||
log_driver: json-file
|
|
||||||
net: none
|
|
||||||
privileged: true
|
|
||||||
read_only: true
|
|
||||||
volumes:
|
|
||||||
- /var/lib/docker:/var/lib/docker
|
|
||||||
logrotate:
|
logrotate:
|
||||||
image: {{.OS_REPO}}/os-logrotate:{{.VERSION}}{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-logrotate:{{.VERSION}}{{.SUFFIX}}
|
||||||
command: /usr/sbin/logrotate -v /etc/logrotate.conf
|
command: /usr/sbin/logrotate -v /etc/logrotate.conf
|
||||||
@ -188,19 +244,6 @@ rancher:
|
|||||||
volumes_from:
|
volumes_from:
|
||||||
- command-volumes
|
- command-volumes
|
||||||
- system-volumes
|
- system-volumes
|
||||||
media-volumes:
|
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
||||||
command: echo
|
|
||||||
labels:
|
|
||||||
io.rancher.os.createonly: "true"
|
|
||||||
io.rancher.os.scope: system
|
|
||||||
log_driver: json-file
|
|
||||||
net: none
|
|
||||||
privileged: true
|
|
||||||
read_only: true
|
|
||||||
volumes:
|
|
||||||
- /media:/media:shared
|
|
||||||
- /mnt:/mnt:shared
|
|
||||||
network:
|
network:
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
command: netconf
|
command: netconf
|
||||||
@ -213,8 +256,8 @@ rancher:
|
|||||||
pid: host
|
pid: host
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- command-volumes
|
|
||||||
- system-volumes
|
- system-volumes
|
||||||
|
- command-volumes
|
||||||
volumes:
|
volumes:
|
||||||
- /usr/bin/iptables:/sbin/iptables:ro
|
- /usr/bin/iptables:/sbin/iptables:ro
|
||||||
ntp:
|
ntp:
|
||||||
@ -266,33 +309,6 @@ rancher:
|
|||||||
- /var/run/system-docker.sock:/var/run/docker.sock
|
- /var/run/system-docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
DOCKER_API_VERSION: "1.22"
|
DOCKER_API_VERSION: "1.22"
|
||||||
system-volumes:
|
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
||||||
command: echo
|
|
||||||
labels:
|
|
||||||
io.rancher.os.createonly: "true"
|
|
||||||
io.rancher.os.scope: system
|
|
||||||
log_driver: json-file
|
|
||||||
net: none
|
|
||||||
privileged: true
|
|
||||||
read_only: true
|
|
||||||
volumes:
|
|
||||||
- /dev:/host/dev
|
|
||||||
- /etc/docker:/etc/docker
|
|
||||||
- /etc/hosts:/etc/hosts
|
|
||||||
- /etc/logrotate.d:/etc/logrotate.d
|
|
||||||
- /etc/resolv.conf:/etc/resolv.conf
|
|
||||||
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt.rancher
|
|
||||||
- /etc/selinux:/etc/selinux
|
|
||||||
- /lib/firmware:/lib/firmware
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
- /run:/run
|
|
||||||
- /usr/share/ros:/usr/share/ros
|
|
||||||
- /var/lib/rancher/cache:/var/lib/rancher/cache
|
|
||||||
- /var/lib/rancher/conf:/var/lib/rancher/conf
|
|
||||||
- /var/lib/rancher:/var/lib/rancher
|
|
||||||
- /var/log:/var/log
|
|
||||||
- /var/run:/var/run
|
|
||||||
udev-cold:
|
udev-cold:
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
||||||
command: ros udev-settle
|
command: ros udev-settle
|
||||||
@ -319,20 +335,6 @@ rancher:
|
|||||||
volumes_from:
|
volumes_from:
|
||||||
- command-volumes
|
- command-volumes
|
||||||
- system-volumes
|
- system-volumes
|
||||||
user-volumes:
|
|
||||||
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
||||||
command: echo
|
|
||||||
labels:
|
|
||||||
io.rancher.os.createonly: "true"
|
|
||||||
io.rancher.os.scope: system
|
|
||||||
log_driver: json-file
|
|
||||||
net: none
|
|
||||||
privileged: true
|
|
||||||
read_only: true
|
|
||||||
volumes:
|
|
||||||
- /home:/home
|
|
||||||
- /opt:/opt
|
|
||||||
- /var/lib/kubelet:/var/lib/kubelet
|
|
||||||
docker:
|
docker:
|
||||||
{{if eq "amd64" .ARCH -}}
|
{{if eq "amd64" .ARCH -}}
|
||||||
image: {{.OS_REPO}}/os-docker:17.09.1{{.SUFFIX}}
|
image: {{.OS_REPO}}/os-docker:17.09.1{{.SUFFIX}}
|
||||||
@ -360,7 +362,8 @@ rancher:
|
|||||||
- /var/lib/system-docker:/var/lib/system-docker:shared
|
- /var/lib/system-docker:/var/lib/system-docker:shared
|
||||||
system_docker:
|
system_docker:
|
||||||
exec: true
|
exec: true
|
||||||
storage_driver: overlay
|
storage_driver: overlay2
|
||||||
|
bridge: none
|
||||||
restart: false
|
restart: false
|
||||||
graph: /var/lib/system-docker
|
graph: /var/lib/system-docker
|
||||||
group: root
|
group: root
|
||||||
|
Loading…
Reference in New Issue
Block a user