Ха sh или массив сетей не добавляются в контейнер docker с помощью puppet - PullRequest
0 голосов
/ 09 марта 2020

Я использую puppet with foreman для развертывания docker контейнеров. Для этого я использую модуль puppet- docker (https://github.com/puppetlabs/puppetlabs-docker).

Если я сейчас объявлю:

docker::run_instance ->

mariadb/mariadb:
  image: mariadb:latest
  restart: always
  net:
  - internal
  - web
  env:
  - MYSQL_ROOT_PASSWORD=abc
  volumes:
  - mariadb-data:/var/lib/mysql
  ensure: present

Выход агента puppet --test --debug:

Debug: Exec[run mariadb/mariadb with docker](provider=posix): Executing check 'docker inspect mariadb-mariadb'
Debug: Executing: 'docker inspect mariadb-mariadb'
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless: [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:     {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Id": "f4e75ff0c7ad72e8c55d13385b3df89964c962e3969c1d8293c68990eb250213",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Created": "2020-03-05T09:35:18.34913964Z",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Path": "docker-entrypoint.sh",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Args": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "mysqld"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "State": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Status": "running",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Running": true,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Paused": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Restarting": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "OOMKilled": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Dead": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Pid": 9112,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "ExitCode": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Error": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "StartedAt": "2020-03-05T09:35:19.075164095Z",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "FinishedAt": "0001-01-01T00:00:00Z"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Image": "sha256:a90e8f717676870bb9b3fdeee8be5d025a7d80819b4b9c87febc7e2e6fe6458e",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "ResolvConfPath": "/var/lib/docker/containers/f4e75ff0c7ad72e8c55d13385b3df89964c962e3969c1d8293c68990eb250213/resolv.conf",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "HostnamePath": "/var/lib/docker/containers/f4e75ff0c7ad72e8c55d13385b3df89964c962e3969c1d8293c68990eb250213/hostname",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "HostsPath": "/var/lib/docker/containers/f4e75ff0c7ad72e8c55d13385b3df89964c962e3969c1d8293c68990eb250213/hosts",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "LogPath": "/var/lib/docker/containers/f4e75ff0c7ad72e8c55d13385b3df89964c962e3969c1d8293c68990eb250213/f4e75ff0c7ad72e8c55d13385b3df89964c962e3969c1d8293c68990eb250213-json.log",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Name": "/mariadb-mariadb",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "RestartCount": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Driver": "overlay2",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Platform": "linux",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "MountLabel": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "ProcessLabel": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "AppArmorProfile": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "ExecIDs": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "HostConfig": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Binds": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "mariadb-data:/var/lib/mysql"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "ContainerIDFile": "/var/run/docker-mariadb-mariadb.cid",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "LogConfig": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Type": "json-file",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Config": {}
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "NetworkMode": "internal",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "PortBindings": {},
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "RestartPolicy": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Name": "always",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "MaximumRetryCount": 0
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "AutoRemove": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "VolumeDriver": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "VolumesFrom": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "CapAdd": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "CapDrop": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "MemorySwappiness": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "OomKillDisable": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "PidsLimit": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Ulimits": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "CpuCount": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "CpuPercent": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "IOMaximumIOps": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "IOMaximumBandwidth": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "MaskedPaths": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/asound",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/acpi",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/kcore",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/keys",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/latency_stats",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/timer_list",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/timer_stats",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/sched_debug",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/scsi",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/sys/firmware"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "ReadonlyPaths": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/bus",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/fs",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/irq",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/proc/sys",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Name": "overlay2"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Mounts": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Type": "volume",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Name": "mariadb-data",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Source": "/var/lib/docker/volumes/mariadb-data/_data",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Destination": "/var/lib/mysql",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Driver": "local",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Mode": "z",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "RW": true,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "Propagation": ""
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             }
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "Config": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Hostname": "f4e75ff0c7ad",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Domainname": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "User": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "AttachStdin": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "AttachStdout": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "AttachStderr": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "ExposedPorts": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "3306/tcp": {}
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Tty": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "OpenStdin": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "StdinOnce": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Env": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "MYSQL_ROOT_PASSWORD=abc",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "GOSU_VERSION=1.10",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "GPG_KEYS=177F4010FE56CA3336300305F1656F24C74CD1D8",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "MARIADB_MAJOR=10.4",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "MARIADB_VERSION=1:10.4.12+maria~bionic"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Cmd": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "mysqld"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Image": "mariadb:latest",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Volumes": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "/var/lib/mysql": {}
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "WorkingDir": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Entrypoint": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "docker-entrypoint.sh"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "OnBuild": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Labels": {}
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         "NetworkSettings": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Bridge": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "SandboxID": "a9ade11bf78b893f052dabc1b32be5d805f24c076fde22fa7cdeee747eacf1b4",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "HairpinMode": false,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "LinkLocalIPv6Address": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "LinkLocalIPv6PrefixLen": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Ports": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "3306/tcp": null
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             },
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "SandboxKey": "/var/run/docker/netns/a9ade11bf78b",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "SecondaryIPAddresses": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "SecondaryIPv6Addresses": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "EndpointID": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Gateway": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "GlobalIPv6Address": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "GlobalIPv6PrefixLen": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "IPAddress": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "IPPrefixLen": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "IPv6Gateway": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "MacAddress": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             "Networks": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 "internal": {
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "IPAMConfig": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "Links": null,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "Aliases": [
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                         "f4e75ff0c7ad"
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     ],
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "NetworkID": "2841016c5b0ed40e3e795e133985318bf4bbdfb3b390c0ef69df89d891e223e2",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "EndpointID": "c90e5885ad80176aad4f2e1c9e341ca3d6e107b9bea039cec13a31db146b1b7f",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "Gateway": "172.23.0.1",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "IPAddress": "172.23.0.2",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "IPPrefixLen": 16,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "IPv6Gateway": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "GlobalIPv6Address": "",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "GlobalIPv6PrefixLen": 0,
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "MacAddress": "02:42:ac:17:00:02",
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                     "DriverOpts": null
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:                 }
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:             }
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:         }
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless:     }
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]/unless: ]
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[run mariadb/mariadb with docker]: 'docker run -d -m 0b \
-e "MYSQL_ROOT_PASSWORD=abc" \
-v mariadb-data:/var/lib/mysql \
 --name mariadb-mariadb --cidfile=/var/run/docker-mariadb-mariadb.cid --restart="always" mariadb:latest ' won't be executed because of failed check 'unless'
Debug: Exec[start mariadb/mariadb with docker](provider=posix): Executing check 'docker inspect mariadb-mariadb -f "{{ .State.Running }}" | grep true'
Debug: Executing: 'docker inspect mariadb-mariadb -f "{{ .State.Running }}" | grep true'
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[start mariadb/mariadb with docker]/unless: true
Debug: /Stage[main]/Docker::Run_instance/Docker::Run[mariadb/mariadb]/Exec[start mariadb/mariadb with docker]: 'docker start mariadb-mariadb' won't be executed because of failed check 'unless'

Среда

  • Версия3.9.1
  • Платформа CentOS7

Дополнительный контекст

Я использую Foreman с Puppet для развертывания своих изменений. Если я определяю только одну сеть, эта сеть применяется:

mariadb/mariadb:
  image: mariadb:latest
  restart: always
  net: web
  env:
  - MYSQL_ROOT_PASSWORD=abc
  volumes:
  - mariadb-data:/var/lib/mysql
  ensure: present

IP-адрес не добавляется в контейнер.

Мой вопрос: есть что-то, что я неправильно понял, или это просто ошибка?

...