I am running Container Linux by CoreOS 1618.0.0 (Ladybug) .
with rkt Version: 1.29.0
I created a systemd service file to run the docker nagios image:
[Unit] Description=Nagios Requires=network-online.target local-fs.target After=network-online.target local-fs.target [Install] WantedBy=multi-user.target [Service] Slice=machine.slice ExecStart=/usr/bin/rkt run --port=80-tcp:8018 --insecure-options=image --volume volume-var-log-apache2,kind=host,source=/mnt/storage/nagios/apache2-log --volume volume-usr-share-snmp-mibs,kind=host,source=/mnt/storage/nagios/snmp-mibs --volume volume-opt-nagiosgraph-etc,kind=host,source=/mnt/storage/nagios/nagiosgraph/etc --volume volume-opt-nagiosgraph-var,kind=host,source=/mnt/storage/nagios/nagiosgraph/var --volume volume-opt-nagios-libexec,kind=host,source=/mnt/storage/nagios/nagios/libexec --volume volume-opt-nagios-var,kind=host,source=/mnt/storage/nagios/etc,readOnly=false --volume volume-opt-nagios-etc,kind=host,source=/mnt/storage/nagios/var,readOnly=false --volume volume-opt-custom-nagios-plugins,kind=host,source=/mnt/storage/nagios/custom-plugins docker://jasonrivers/nagios:latest KillMode=mixed Restart=always RestartSec=0 ExecStopPost=/usr/bin/rkt gc --mark-only
now the problem is that the established bindings are not populated with the corresponding image files.
usually what i do is extract the image itself and manually copy the corresponding files.
question ... is there another?
I hope that I skipped the rkt parameter, which fills the corresponding mounted directories with files in the docker image in the specified places
any ideas?
source share