2015-07-29 11:52:15 +05:00
|
|
|
rancher:
|
2017-07-28 13:27:40 +10:00
|
|
|
shutdown_timeout: 60
|
2016-06-29 18:39:12 -07:00
|
|
|
environment:
|
|
|
|
VERSION: {{.VERSION}}
|
|
|
|
SUFFIX: {{.SUFFIX}}
|
2018-03-06 18:07:21 +08:00
|
|
|
REGISTRY_DOMAIN: "docker.io"
|
2016-05-03 08:55:15 -07:00
|
|
|
defaults:
|
|
|
|
hostname: {{.HOSTNAME_DEFAULT}}
|
2017-01-18 22:09:46 +10:00
|
|
|
{{if eq "amd64" .ARCH -}}
|
2016-08-26 11:23:34 -07:00
|
|
|
docker:
|
2018-12-04 14:48:09 +08:00
|
|
|
engine: {{.USER_DOCKER_ENGINE_VERSION}}
|
2017-01-18 22:09:46 +10:00
|
|
|
{{else -}}
|
|
|
|
docker:
|
2018-12-04 14:48:09 +08:00
|
|
|
engine: {{.USER_DOCKER_ENGINE_VERSION}}
|
2017-01-18 22:09:46 +10:00
|
|
|
{{end -}}
|
2016-05-03 08:55:15 -07:00
|
|
|
network:
|
2018-10-22 10:11:12 +08:00
|
|
|
dhcp_timeout: 10
|
2016-05-03 08:55:15 -07:00
|
|
|
dns:
|
|
|
|
nameservers: [8.8.8.8, 8.8.4.4]
|
2018-10-10 16:37:17 +08:00
|
|
|
system_docker_logs: /var/log/system-docker.log
|
2017-07-17 11:15:54 +10:00
|
|
|
ssh:
|
|
|
|
daemon: true
|
2017-07-17 21:14:45 +10:00
|
|
|
hypervisor_service: true
|
2018-12-14 15:39:41 +08:00
|
|
|
services_include:
|
2018-12-28 16:48:04 +08:00
|
|
|
{{- if eq "true" .AZURE_SERVICE}}
|
2018-12-14 15:39:41 +08:00
|
|
|
waagent: true
|
2019-01-02 18:35:39 +08:00
|
|
|
{{- end}}
|
2019-01-22 02:00:55 +00:00
|
|
|
{{- if eq "true" .PROXMOXVE_SERVICE}}
|
|
|
|
qemu-guest-agent: true
|
|
|
|
{{- end}}
|
2015-07-29 11:52:15 +05:00
|
|
|
bootstrap:
|
2016-10-17 14:47:44 -07:00
|
|
|
bootstrap:
|
|
|
|
image: {{.OS_REPO}}/os-bootstrap:{{.VERSION}}{{.SUFFIX}}
|
2017-09-13 16:02:53 +10:00
|
|
|
command: ros-bootstrap
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
2015-11-26 17:41:42 +05:00
|
|
|
io.rancher.os.detach: "false"
|
2015-07-29 11:52:15 +05:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- /dev:/host/dev
|
|
|
|
- /lib/modules:/lib/modules
|
|
|
|
- /lib/firmware:/lib/firmware
|
2016-07-31 19:48:10 -07:00
|
|
|
- /usr/bin/ros:/usr/bin/ros:ro
|
2017-09-13 16:02:53 +10:00
|
|
|
- /usr/bin/ros:/usr/bin/ros-bootstrap:ro
|
2016-10-17 14:47:44 -07:00
|
|
|
- /usr/share/ros:/usr/share/ros:ro
|
2017-01-20 17:02:48 +10:00
|
|
|
- /var/lib/rancher:/var/lib/rancher:ro
|
2017-07-18 14:13:11 +10:00
|
|
|
- /var/log:/var/log
|
2016-11-09 11:08:30 -08:00
|
|
|
cloud_init_services:
|
|
|
|
cloud-init:
|
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: cloud-init-save
|
|
|
|
labels:
|
|
|
|
io.rancher.os.detach: "false"
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
pid: host
|
|
|
|
ipc: host
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
2017-08-28 14:22:50 +10:00
|
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
2016-11-09 11:08:30 -08:00
|
|
|
- /dev:/host/dev
|
|
|
|
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt.rancher
|
|
|
|
- /lib/modules:/lib/modules
|
|
|
|
- /lib/firmware:/lib/firmware
|
|
|
|
- /usr/bin/ros:/usr/bin/ros:ro
|
|
|
|
- /usr/bin/ros:/usr/bin/cloud-init-save
|
|
|
|
- /usr/share/ros:/usr/share/ros:ro
|
|
|
|
- /var/lib/rancher:/var/lib/rancher
|
|
|
|
- /var/lib/rancher/conf:/var/lib/rancher/conf
|
2017-07-18 14:13:11 +10:00
|
|
|
- /var/log:/var/log
|
2015-07-29 11:52:15 +05:00
|
|
|
bootstrap_docker:
|
2016-09-25 17:55:19 -07:00
|
|
|
bridge: none
|
2018-02-27 17:49:24 +08:00
|
|
|
storage_driver: overlay2
|
2016-09-25 17:55:19 -07:00
|
|
|
restart: false
|
|
|
|
graph: /var/lib/system-docker
|
|
|
|
group: root
|
2016-10-30 12:07:55 -07:00
|
|
|
host: ["unix:///var/run/system-docker.sock"]
|
2016-09-25 17:55:19 -07:00
|
|
|
userland_proxy: false
|
2018-12-18 16:47:42 +08:00
|
|
|
console: {{.OS_CONSOLE}}
|
2015-07-29 11:52:15 +05:00
|
|
|
cloud_init:
|
|
|
|
datasources:
|
|
|
|
- configdrive:/media/config-2
|
|
|
|
repositories:
|
|
|
|
core:
|
2016-07-01 10:13:52 -07:00
|
|
|
url: {{.OS_SERVICES_REPO}}/{{.REPO_VERSION}}
|
2015-07-29 11:52:15 +05:00
|
|
|
state:
|
|
|
|
fstype: auto
|
2015-12-19 22:26:09 -07:00
|
|
|
oem_fstype: auto
|
|
|
|
oem_dev: LABEL=RANCHER_OEM
|
2018-09-30 14:30:25 +08:00
|
|
|
boot_fstype: auto
|
|
|
|
boot_dev: LABEL=RANCHER_BOOT
|
2018-09-14 16:34:09 +08:00
|
|
|
rngd: true
|
2016-08-12 11:05:16 -07:00
|
|
|
sysctl:
|
|
|
|
fs.file-max: 1000000000
|
2015-07-29 11:52:15 +05:00
|
|
|
services:
|
2018-02-27 17:49:24 +08:00
|
|
|
command-volumes:
|
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: echo
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
2018-02-27 17:49:24 +08:00
|
|
|
io.rancher.os.createonly: "true"
|
2015-07-29 11:52:15 +05:00
|
|
|
io.rancher.os.scope: system
|
2018-02-27 17:49:24 +08:00
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
2015-07-29 11:52:15 +05:00
|
|
|
privileged: true
|
2018-02-27 17:49:24 +08:00
|
|
|
read_only: true
|
|
|
|
volumes:
|
|
|
|
- /usr/bin/ros:/usr/bin/ros:ro
|
|
|
|
- /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
|
2018-05-03 11:00:50 +00:00
|
|
|
- /var/lib/boot2docker:/var/lib/boot2docker
|
2018-02-27 17:49:24 +08:00
|
|
|
- /var/lib/rancher/cache:/var/lib/rancher/cache
|
|
|
|
- /var/lib/rancher/conf:/var/lib/rancher/conf
|
|
|
|
- /var/lib/rancher:/var/lib/rancher
|
2018-12-14 15:39:41 +08:00
|
|
|
- /var/lib/waagent:/var/lib/waagent
|
2018-02-27 17:49:24 +08:00
|
|
|
- /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:
|
2018-05-20 10:48:21 +08:00
|
|
|
- /var/lib/user-docker:/var/lib/docker
|
2018-06-27 12:08:32 +08:00
|
|
|
- /var/lib/m-user-docker:/var/lib/m-user-docker
|
2018-02-27 17:49:24 +08:00
|
|
|
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
|
2015-07-29 11:52:15 +05:00
|
|
|
all-volumes:
|
2016-06-16 14:26:06 -07:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: echo
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
2015-11-26 17:41:42 +05:00
|
|
|
io.rancher.os.createonly: "true"
|
2015-07-29 11:52:15 +05:00
|
|
|
io.rancher.os.scope: system
|
2018-01-02 16:07:48 +08:00
|
|
|
io.docker.compose.rebuild: always
|
2015-07-29 11:52:15 +05:00
|
|
|
log_driver: json-file
|
|
|
|
net: none
|
|
|
|
privileged: true
|
|
|
|
read_only: true
|
|
|
|
volumes_from:
|
2015-10-03 23:07:56 -07:00
|
|
|
- container-data-volumes
|
2015-07-29 11:52:15 +05:00
|
|
|
- command-volumes
|
2017-02-17 13:18:08 +01:00
|
|
|
- media-volumes
|
2015-07-29 11:52:15 +05:00
|
|
|
- user-volumes
|
|
|
|
- system-volumes
|
2018-02-27 17:49:24 +08:00
|
|
|
{{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 -}}
|
2016-08-04 15:47:12 -07:00
|
|
|
cloud-init-execute:
|
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: cloud-init-execute -pre-console
|
|
|
|
labels:
|
|
|
|
io.rancher.os.detach: "false"
|
|
|
|
io.rancher.os.scope: system
|
2016-11-09 11:08:30 -08:00
|
|
|
io.rancher.os.after: ntp
|
2015-07-29 11:52:15 +05:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- system-volumes
|
2016-11-21 11:52:21 -08:00
|
|
|
volumes:
|
2015-11-18 14:04:46 +05:00
|
|
|
- /usr/bin/ros:/usr/bin/ros:ro
|
2015-07-29 11:52:15 +05:00
|
|
|
console:
|
2016-05-06 10:12:09 -07:00
|
|
|
image: {{.OS_REPO}}/os-console:{{.VERSION}}{{.SUFFIX}}
|
2016-10-20 11:58:34 -07:00
|
|
|
command: ros console-init
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2016-11-09 11:08:30 -08:00
|
|
|
io.rancher.os.after: cloud-init-execute
|
2015-08-26 20:05:44 +05:00
|
|
|
io.docker.compose.rebuild: always
|
2016-06-09 21:31:07 -07:00
|
|
|
io.rancher.os.console: default
|
2017-09-15 23:38:15 +10:00
|
|
|
environment:
|
|
|
|
- HTTP_PROXY
|
|
|
|
- HTTPS_PROXY
|
|
|
|
- NO_PROXY
|
2015-07-29 11:52:15 +05:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
pid: host
|
|
|
|
ipc: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
|
|
|
- all-volumes
|
2015-08-31 12:53:45 +05:00
|
|
|
volumes:
|
|
|
|
- /usr/bin/iptables:/sbin/iptables:ro
|
2017-07-05 12:01:17 +02:00
|
|
|
logrotate:
|
|
|
|
image: {{.OS_REPO}}/os-logrotate:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: /usr/sbin/logrotate -v /etc/logrotate.conf
|
|
|
|
labels:
|
|
|
|
io.rancher.os.createonly: "true"
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
io.rancher.os.before: system-cron
|
|
|
|
cron.schedule: "@hourly"
|
|
|
|
uts: host
|
2017-07-13 08:57:03 +10:00
|
|
|
net: none
|
2017-07-05 12:01:17 +02:00
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
2016-04-08 13:04:35 -07:00
|
|
|
network:
|
2016-05-26 18:54:42 -07:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
2016-11-09 11:08:30 -08:00
|
|
|
command: netconf
|
2016-04-08 13:04:35 -07:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2016-11-09 11:08:30 -08:00
|
|
|
io.rancher.os.after: udev
|
|
|
|
io.rancher.os.reloadconfig: "true"
|
2016-04-08 13:04:35 -07:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
pid: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- system-volumes
|
2018-02-27 17:49:24 +08:00
|
|
|
- command-volumes
|
2017-03-07 22:02:44 -08:00
|
|
|
volumes:
|
|
|
|
- /usr/bin/iptables:/sbin/iptables:ro
|
2015-07-29 11:52:15 +05:00
|
|
|
ntp:
|
2016-06-16 14:26:06 -07:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
2017-07-19 16:09:02 +10:00
|
|
|
command: /bin/start_ntp.sh
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2016-11-09 11:08:30 -08:00
|
|
|
io.rancher.os.after: network
|
2015-07-29 11:52:15 +05:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
2016-08-14 19:17:24 -07:00
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
2015-07-29 11:52:15 +05:00
|
|
|
preload-user-images:
|
2016-10-17 14:47:44 -07:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: ros preload-images
|
2019-01-07 16:55:36 +08:00
|
|
|
net: host
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
2015-11-26 17:41:42 +05:00
|
|
|
io.rancher.os.detach: "false"
|
2015-08-07 00:01:57 +05:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
io.rancher.os.after: console
|
2015-07-29 11:52:15 +05:00
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
|
|
|
syslog:
|
2017-07-05 12:01:17 +02:00
|
|
|
image: {{.OS_REPO}}/os-syslog:{{.VERSION}}{{.SUFFIX}}
|
2016-11-03 16:43:41 -07:00
|
|
|
command: rsyslogd -n
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
log_driver: json-file
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
2016-08-14 19:17:24 -07:00
|
|
|
- command-volumes
|
2015-07-29 11:52:15 +05:00
|
|
|
- system-volumes
|
2017-07-05 12:01:17 +02:00
|
|
|
system-cron:
|
2018-03-15 17:34:57 +08:00
|
|
|
{{if eq "amd64" .ARCH -}}
|
2018-02-21 20:36:30 -07:00
|
|
|
image: rancher/container-crontab:v0.4.0
|
2018-03-15 17:34:57 +08:00
|
|
|
{{else -}}
|
|
|
|
image: niusmallnan/container-crontab:v0.4.0{{.SUFFIX}}
|
|
|
|
{{end -}}
|
2017-07-05 12:01:17 +02:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
uts: host
|
2017-07-13 08:57:03 +10:00
|
|
|
net: none
|
2017-07-05 12:01:17 +02:00
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2018-02-21 20:36:30 -07:00
|
|
|
- /var/run/system-docker.sock:/var/run/docker.sock
|
|
|
|
environment:
|
|
|
|
DOCKER_API_VERSION: "1.22"
|
2015-08-10 22:57:15 -07:00
|
|
|
udev-cold:
|
2016-10-17 14:47:44 -07:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: ros udev-settle
|
2015-08-10 22:57:15 -07:00
|
|
|
labels:
|
2016-08-28 12:15:32 -07:00
|
|
|
io.rancher.os.detach: "false"
|
2015-08-10 22:57:15 -07:00
|
|
|
io.rancher.os.scope: system
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
volumes_from:
|
2016-08-14 19:17:24 -07:00
|
|
|
- command-volumes
|
2015-08-10 22:57:15 -07:00
|
|
|
- system-volumes
|
2015-07-29 11:52:15 +05:00
|
|
|
udev:
|
2016-10-17 14:47:44 -07:00
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: udevd
|
2015-07-29 11:52:15 +05:00
|
|
|
labels:
|
2015-11-26 17:41:42 +05:00
|
|
|
io.rancher.os.detach: "true"
|
2015-07-29 11:52:15 +05:00
|
|
|
io.rancher.os.scope: system
|
2016-08-28 12:15:32 -07:00
|
|
|
io.rancher.os.after: udev-cold
|
2015-07-29 11:52:15 +05:00
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
2016-08-14 19:17:24 -07:00
|
|
|
- command-volumes
|
2015-07-29 11:52:15 +05:00
|
|
|
- system-volumes
|
2015-08-27 12:24:26 -07:00
|
|
|
docker:
|
2017-01-18 22:09:46 +10:00
|
|
|
{{if eq "amd64" .ARCH -}}
|
2018-12-04 14:48:09 +08:00
|
|
|
image: {{.OS_REPO}}/os-docker:{{.USER_DOCKER_VERSION}}{{.SUFFIX}}
|
2017-01-18 22:09:46 +10:00
|
|
|
{{else -}}
|
2018-12-04 14:48:09 +08:00
|
|
|
image: {{.OS_REPO}}/os-docker:{{.USER_DOCKER_VERSION}}{{.SUFFIX}}
|
2017-01-18 22:09:46 +10:00
|
|
|
{{end -}}
|
2016-10-20 11:58:34 -07:00
|
|
|
command: ros user-docker
|
2016-05-06 16:25:07 -07:00
|
|
|
environment:
|
|
|
|
- HTTP_PROXY
|
|
|
|
- HTTPS_PROXY
|
|
|
|
- NO_PROXY
|
2015-08-27 12:24:26 -07:00
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
2015-08-28 01:02:42 +05:00
|
|
|
io.rancher.os.after: console
|
2015-08-27 12:24:26 -07:00
|
|
|
net: host
|
|
|
|
pid: host
|
|
|
|
ipc: host
|
|
|
|
uts: host
|
|
|
|
privileged: true
|
|
|
|
restart: always
|
|
|
|
volumes_from:
|
|
|
|
- all-volumes
|
2016-09-09 09:06:23 -07:00
|
|
|
volumes:
|
|
|
|
- /sys:/host/sys
|
|
|
|
- /var/lib/system-docker:/var/lib/system-docker:shared
|
2019-01-30 13:32:08 +08:00
|
|
|
subscriber:
|
|
|
|
image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}}
|
|
|
|
command: os-subscriber
|
|
|
|
environment:
|
|
|
|
- IN_DOCKER=true
|
|
|
|
labels:
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
io.rancher.os.after: console
|
|
|
|
cron.schedule: "0 0 3 * * ?"
|
|
|
|
privileged: true
|
|
|
|
pid: host
|
|
|
|
ipc: host
|
|
|
|
net: host
|
|
|
|
uts: host
|
|
|
|
volumes_from:
|
|
|
|
- command-volumes
|
|
|
|
- system-volumes
|
|
|
|
volumes:
|
|
|
|
- /sys:/host/sys
|
2015-07-29 11:52:15 +05:00
|
|
|
system_docker:
|
2016-05-31 21:38:10 -07:00
|
|
|
exec: true
|
2018-02-27 17:49:24 +08:00
|
|
|
storage_driver: overlay2
|
2018-04-16 14:16:08 +08:00
|
|
|
bip: 172.18.42.1/16
|
2016-09-25 17:55:19 -07:00
|
|
|
restart: false
|
|
|
|
graph: /var/lib/system-docker
|
|
|
|
group: root
|
2016-10-30 12:07:55 -07:00
|
|
|
host: ["unix:///var/run/system-docker.sock"]
|
2016-09-25 17:55:19 -07:00
|
|
|
pid_file: /var/run/system-docker.pid
|
|
|
|
exec_root: /var/run/system-docker
|
|
|
|
config_file: /etc/docker/system-docker.json
|
|
|
|
userland_proxy: false
|
|
|
|
log_opts:
|
|
|
|
max-size: 25m
|
|
|
|
max-file: 2
|
2015-07-29 11:52:15 +05:00
|
|
|
upgrade:
|
2016-06-27 20:47:28 +08:00
|
|
|
url: {{.OS_RELEASES_YML}}/releases{{.SUFFIX}}.yml
|
2016-05-06 10:12:09 -07:00
|
|
|
image: {{.OS_REPO}}/os
|
2019-01-30 13:32:08 +08:00
|
|
|
policy: download
|
2015-09-11 14:10:50 +05:00
|
|
|
docker:
|
2017-01-18 22:09:46 +10:00
|
|
|
{{if eq "amd64" .ARCH -}}
|
2018-12-04 14:48:09 +08:00
|
|
|
engine: {{.USER_DOCKER_ENGINE_VERSION}}
|
2017-01-18 22:09:46 +10:00
|
|
|
{{else -}}
|
2018-12-04 14:48:09 +08:00
|
|
|
engine: {{.USER_DOCKER_ENGINE_VERSION}}
|
2017-01-18 22:09:46 +10:00
|
|
|
{{end -}}
|
2016-09-25 17:55:19 -07:00
|
|
|
group: docker
|
2016-10-30 12:07:55 -07:00
|
|
|
host: ["unix:///var/run/docker.sock"]
|
2016-09-25 17:55:19 -07:00
|
|
|
log_opts:
|
|
|
|
max-size: 25m
|
|
|
|
max-file: 2
|
2015-12-10 11:36:37 +05:00
|
|
|
tls_args: [--tlsverify, --tlscacert=/etc/docker/tls/ca.pem, --tlscert=/etc/docker/tls/server-cert.pem, --tlskey=/etc/docker/tls/server-key.pem,
|
2015-07-29 11:52:15 +05:00
|
|
|
'-H=0.0.0.0:2376']
|