Closed Johandershmut closed 4 months ago
Looks like some issue with docker compose, in my case everything is fine:
docker compose -f docker-compose_v3_alpine_mysql_latest.yaml up -d
could you check
docker compose -f docker-compose_v3_alpine_mysql_latest.yaml config
?
hello, thank you for the reply, here is the out put of the commands you listed above
`docker@monitor:~/docker/zabbix-docker$ docker --version Docker version 26.1.4, build 5650f9b docker@monitor:~/docker/zabbix-docker$ docker-compose --version Docker Compose version v2.28.0 docker@monitor:~/docker/zabbix-docker$ docker compose -f docker-compose_v3_alpine_mysql_latest.yaml up -d panic: interface conversion: interface {} is map[string]interface {}, not string
goroutine 1 [running]: github.com/compose-spec/compose-go/types.(StringList).DecodeMapstructure(0xc00046d800, {0x1cfbac0?, 0xc000010750?}) github.com/compose-spec/compose-go@v1.20.0/types/stringOrList.go:35 +0x1e6 github.com/compose-spec/compose-go/loader.decoderHook({0x1cfbac0?, 0xc000010750?, 0x252ec50?}, {0x1d79f00?, 0xc00046d800?, 0xc000010750?}) github.com/compose-spec/compose-go@v1.20.0/loader/mapstructure.go:49 +0x2a5 github.com/mitchellh/mapstructure.DecodeHookExec({0x1e3a2a0?, 0x22e8148?}, {0x1cfbac0?, 0xc000010750?, 0x1e3a2a0?}, {0x1d79f00?, 0xc00046d800?, 0x1e3a2a0?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:51 +0x134 github.com/compose-spec/compose-go/loader.Transform.ComposeDecodeHookFunc.func1({0x1cfbac0?, 0xc000010750?, 0x418568?}, {0x1d79f00?, 0xc00046d800?, 0x4104a5?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:69 +0x10d github.com/mitchellh/mapstructure.DecodeHookExec({0x1e3a2a0?, 0xc0006b1fc0?}, {0x1cfbac0?, 0xc000010750?, 0xc0006a2710?}, {0x1d79f00?, 0xc00046d800?, 0x1d25349?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:51 +0x134 github.com/mitchellh/mapstructure.(Decoder).decode(0xc0003da120, {0x1d25349, 0x8}, {0x1cfbac0?, 0xc000010750?}, {0x1d79f00?, 0xc00046d800?, 0x22?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:459 +0x134 github.com/mitchellh/mapstructure.(Decoder).decodeStructFromMap(0xc0003da120, {0x0, 0x0}, {0x1e33dc0?, 0xc000923560?, 0x1e3a2a0?}, {0x21a7dc0?, 0xc00046d600?, 0x1?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:1411 +0xaa5 github.com/mitchellh/mapstructure.(Decoder).decodeStruct(0x1e3a2a0?, {0x0, 0x0}, {0x1e33dc0?, 0xc000923560?}, {0x21a7dc0?, 0xc00046d600?, 0x0?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:1235 +0x55c github.com/mitchellh/mapstructure.(Decoder).decode(0xc0003da120, {0x0, 0x0}, {0x1e33dc0?, 0xc000923560?}, {0x21a7dc0?, 0xc00046d600?, 0x50?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:482 +0x25f github.com/mitchellh/mapstructure.(Decoder).Decode(0xc0003da120, {0x1e33dc0, 0xc000923560}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:417 +0xa7 github.com/compose-spec/compose-go/loader.Transform({0x1e33dc0, 0xc000923560}, {0x1f82ce0?, 0xc00046d600}, {0x0, 0x0, 0x0}) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:600 +0x1c5 github.com/compose-spec/compose-go/loader.LoadService({0xc0008b6238, 0x6}, 0xc0008b6238?) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:822 +0x6e github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc0000a40f0}, {0xc000750dc0, 0x40}, {0xc0008b6238, 0x6}, 0x22e8238?, {0xc000750dc0, 0x21}, 0xc0006a4328, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:750 +0x105 github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc0000a40f0}, {0xc000750dc0, 0x40}, {0xc000618440, 0xc}, 0x10?, {0xc000750dc0, 0x21}, 0xc0006a4328, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:760 +0x1e5 github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc0000a40f0}, {0xc0005060f0, 0x4c}, {0xc000522c00, 0xd}, 0x2516958?, {0xc0005061e0, 0x21}, 0xc0006a4328, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:792 +0x754 github.com/compose-spec/compose-go/loader.LoadServices({0x2515700, 0xc0000a40f0}, {0xc0005060f0, 0x4c}, 0x0?, {0xc0005061e0, 0x21}, 0xd10000c0005d7800?, 0xffffffffffffffff?) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:725 +0x21d github.com/compose-spec/compose-go/loader.loadSections({0x2515700, 0xc0000a40f0}, {0xc0005060f0, 0x4c}, 0xc00068e600?, {{0x0, 0x0}, {0xc0005061e0, 0x21}, {0xc0006261b0, ...}, ...}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:527 +0x2d8 github.com/compose-spec/compose-go/loader.load.func1() github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:279 +0x145 github.com/compose-spec/compose-go/loader.load({0x2515700, 0xc0000a40f0}, {{0x0, 0x0}, {0xc0005061e0, 0x21}, {0xc0006261b0, 0x1, 0x1}, 0xc000626060}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:335 +0xeb8 github.com/compose-spec/compose-go/loader.LoadWithContext({0x2515700, 0xc0000a40f0}, {{0x0, 0x0}, {0xc0005061e0, 0x21}, {0xc0006261b0, 0x1, 0x1}, 0xc000626060}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:250 +0x35d github.com/compose-spec/compose-go/cli.ProjectFromOptions(0xc000502080) github.com/compose-spec/compose-go@v1.20.0/cli/options.go:410 +0x58a github.com/docker/compose/v2/cmd/compose.(ProjectOptions).ToProject(0xc0003bb680, {0x2527960?, 0xc0004fe0f0?}, {0xc0003acc00, 0x0, 0x1}, {0xc000575878?, 0x4104a5?, 0xc000610078?}) github.com/docker/compose/v2/cmd/compose/compose.go:221 +0x12c github.com/docker/compose/v2/cmd/compose.upCommand.(ProjectOptions).WithServices.func4({0x2515700, 0xc0000a40f0}, {0xc0003acc00, 0x0, 0x1}) github.com/docker/compose/v2/cmd/compose/compose.go:147 +0xee github.com/docker/compose/v2/cmd/compose.upCommand.(ProjectOptions).WithServices.Adapt.func6({0x2515700?, 0xc0000a40f0?}, 0x2?, {0xc0003acc00?, 0x1?, 0x0?}) github.com/docker/compose/v2/cmd/compose/compose.go:109 +0x30 github.com/docker/compose/v2/cmd/compose.upCommand.(ProjectOptions).WithServices.Adapt.AdaptCmd.func7(0x0?, {0xc0003acc00, 0x0, 0x1}) github.com/docker/compose/v2/cmd/compose/compose.go:88 +0x1d8 github.com/docker/compose/v2/cmd/cmdtrace.Setup.wrapRunE.func2(0xc000124a00?, {0xc0003acc00?, 0x0?, 0x1?}) github.com/docker/compose/v2/cmd/cmdtrace/cmd_span.go:84 +0x65 github.com/spf13/cobra.(Command).execute(0xc000005b00, {0xc000460ea0, 0x1, 0x1}) github.com/spf13/cobra@v1.7.0/command.go:940 +0x87c github.com/spf13/cobra.(Command).ExecuteC(0xc0004bc300) github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.7.0/command.go:992 github.com/docker/cli/cli-plugins/plugin.RunPlugin(0xc0003bb5e0?, 0xc000005800, {{0x21ad1e6, 0x5}, {0x21b6bb4, 0xb}, {0x24f1f10, 0x11}, {0x0, 0x0}, ...}) github.com/docker/cli@v24.0.6+incompatible/cli-plugins/plugin/plugin.go:51 +0x12a github.com/docker/cli/cli-plugins/plugin.Run(0x22e7400, {{0x21ad1e6, 0x5}, {0x21b6bb4, 0xb}, {0x24f1f10, 0x11}, {0x0, 0x0}, {0x0, ...}, ...}) github.com/docker/cli@v24.0.6+incompatible/cli-plugins/plugin/plugin.go:64 +0xe5 main.pluginMain() github.com/docker/compose/v2/cmd/main.go:37 +0xbf main.main() github.com/docker/compose/v2/cmd/main.go:75 +0x19c docker@monitor:~/docker/zabbix-docker$ docker compose -f docker-compose_v3_alpine_mysql_latest.yaml config panic: interface conversion: interface {} is map[string]interface {}, not string
goroutine 1 [running]: github.com/compose-spec/compose-go/types.(StringList).DecodeMapstructure(0xc0000ef380, {0x1cfbac0?, 0xc000413cb0?}) github.com/compose-spec/compose-go@v1.20.0/types/stringOrList.go:35 +0x1e6 github.com/compose-spec/compose-go/loader.decoderHook({0x1cfbac0?, 0xc000413cb0?, 0x252ec50?}, {0x1d79f00?, 0xc0000ef380?, 0xc000413cb0?}) github.com/compose-spec/compose-go@v1.20.0/loader/mapstructure.go:49 +0x2a5 github.com/mitchellh/mapstructure.DecodeHookExec({0x1e3a2a0?, 0x22e8148?}, {0x1cfbac0?, 0xc000413cb0?, 0x1e3a2a0?}, {0x1d79f00?, 0xc0000ef380?, 0x1e3a2a0?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:51 +0x134 github.com/compose-spec/compose-go/loader.Transform.ComposeDecodeHookFunc.func1({0x1cfbac0?, 0xc000413cb0?, 0x418568?}, {0x1d79f00?, 0xc0000ef380?, 0x4104a5?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:69 +0x10d github.com/mitchellh/mapstructure.DecodeHookExec({0x1e3a2a0?, 0xc00044d1c0?}, {0x1cfbac0?, 0xc000413cb0?, 0xc0007845a0?}, {0x1d79f00?, 0xc0000ef380?, 0x1d25349?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:51 +0x134 github.com/mitchellh/mapstructure.(Decoder).decode(0xc0004522f8, {0x1d25349, 0x8}, {0x1cfbac0?, 0xc000413cb0?}, {0x1d79f00?, 0xc0000ef380?, 0x22?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:459 +0x134 github.com/mitchellh/mapstructure.(Decoder).decodeStructFromMap(0xc0004522f8, {0x0, 0x0}, {0x1e33dc0?, 0xc0003dfc80?, 0x1e3a2a0?}, {0x21a7dc0?, 0xc0000ef180?, 0x1?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:1411 +0xaa5 github.com/mitchellh/mapstructure.(Decoder).decodeStruct(0x1e3a2a0?, {0x0, 0x0}, {0x1e33dc0?, 0xc0003dfc80?}, {0x21a7dc0?, 0xc0000ef180?, 0x0?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:1235 +0x55c github.com/mitchellh/mapstructure.(Decoder).decode(0xc0004522f8, {0x0, 0x0}, {0x1e33dc0?, 0xc0003dfc80?}, {0x21a7dc0?, 0xc0000ef180?, 0x50?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:482 +0x25f github.com/mitchellh/mapstructure.(Decoder).Decode(0xc0004522f8, {0x1e33dc0, 0xc0003dfc80}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:417 +0xa7 github.com/compose-spec/compose-go/loader.Transform({0x1e33dc0, 0xc0003dfc80}, {0x1f82ce0?, 0xc0000ef180}, {0x0, 0x0, 0x0}) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:600 +0x1c5 github.com/compose-spec/compose-go/loader.LoadService({0xc000810660, 0xa}, 0xc000810660?) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:822 +0x6e github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc00014a0f0}, {0xc000672e00, 0x40}, {0xc000810660, 0xa}, 0x22e8238?, {0xc000672e00, 0x21}, 0xc0007861b8, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:750 +0x105 github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc00014a0f0}, {0xc000672e00, 0x40}, {0xc0005a2100, 0x10}, 0x10?, {0xc000672e00, 0x21}, 0xc0007861b8, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:760 +0x1e5 github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc00014a0f0}, {0xc0005a0000, 0x4c}, {0xc0004f4930, 0x17}, 0x2516958?, {0xc0005a0320, 0x21}, 0xc0007861b8, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:792 +0x754 github.com/compose-spec/compose-go/loader.LoadServices({0x2515700, 0xc00014a0f0}, {0xc0005a0000, 0x4c}, 0x0?, {0xc0005a0320, 0x21}, 0x210000c0006fd3e0?, 0xffffffffffffffff?) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:725 +0x21d github.com/compose-spec/compose-go/loader.loadSections({0x2515700, 0xc00014a0f0}, {0xc0005a0000, 0x4c}, 0xc00070e490?, {{0x0, 0x0}, {0xc0005a0320, 0x21}, {0xc000538150, ...}, ...}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:527 +0x2d8 github.com/compose-spec/compose-go/loader.load.func1() github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:279 +0x145 github.com/compose-spec/compose-go/loader.load({0x2515700, 0xc00014a0f0}, {{0x0, 0x0}, {0xc0005a0320, 0x21}, {0xc000538150, 0x1, 0x1}, 0xc000538000}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:335 +0xeb8 github.com/compose-spec/compose-go/loader.LoadWithContext({0x2515700, 0xc00014a0f0}, {{0x0, 0x0}, {0xc0005a0320, 0x21}, {0xc000538150, 0x1, 0x1}, 0xc000538000}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:250 +0x35d github.com/compose-spec/compose-go/cli.ProjectFromOptions(0xc00018eb00) github.com/compose-spec/compose-go@v1.20.0/cli/options.go:410 +0x58a github.com/docker/compose/v2/cmd/compose.(ProjectOptions).ToProject(0xc00036edc0, {0x2527960?, 0xc0004fa0f0?}, {0x3656500, 0x0, 0x0}, {0xc000520100?, 0x6400000010?, 0x2ff9f8?}) github.com/docker/compose/v2/cmd/compose/compose.go:221 +0x12c github.com/docker/compose/v2/cmd/compose.(configOptions).ToProject(0xc0005937f8, {0x2515700?, 0xc00014a0f0}, {0x2527960, 0xc0004fa0f0}, {0x3656500, 0x0, 0x0}, {0x0, 0x0, ...}) github.com/docker/compose/v2/cmd/compose/config.go:62 +0x2fc github.com/docker/compose/v2/cmd/compose.runConfig({0x2515700, 0xc00014a0f0}, {0x2527960?, 0xc0004fa0f0?}, {0x252ea30, 0xc00039d560}, {0xc00036edc0, {0x21ac69a, 0x4}, {0x0, ...}, ...}, ...) github.com/docker/compose/v2/cmd/compose/config.go:128 +0x98 github.com/docker/compose/v2/cmd/compose.configCommand.func2({0x2515700?, 0xc00014a0f0?}, {0x3656500?, 0xc0000061a0?, 0x1bde4d9?}) github.com/docker/compose/v2/cmd/compose/config.go:103 +0xf7 github.com/docker/compose/v2/cmd/compose.configCommand.Adapt.func4({0x2515700?, 0xc00014a0f0?}, 0x2?, {0x3656500?, 0x1?, 0x0?}) github.com/docker/compose/v2/cmd/compose/compose.go:109 +0x30 github.com/docker/compose/v2/cmd/compose.configCommand.Adapt.AdaptCmd.func7(0x0?, {0x3656500, 0x0, 0x0}) github.com/docker/compose/v2/cmd/compose/compose.go:88 +0x1d8 github.com/docker/compose/v2/cmd/cmdtrace.Setup.wrapRunE.func2(0xc00016d900?, {0x3656500?, 0x0?, 0x0?}) github.com/docker/compose/v2/cmd/cmdtrace/cmd_span.go:84 +0x65 github.com/spf13/cobra.(Command).execute(0xc00047b500, {0xc000149bd0, 0x0, 0x0}) github.com/spf13/cobra@v1.7.0/command.go:940 +0x87c github.com/spf13/cobra.(Command).ExecuteC(0xc0004c2900) github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.7.0/command.go:992 github.com/docker/cli/cli-plugins/plugin.RunPlugin(0xc00036ed20?, 0xc000339500, {{0x21ad1e6, 0x5}, {0x21b6bb4, 0xb}, {0x24f1f10, 0x11}, {0x0, 0x0}, ...}) github.com/docker/cli@v24.0.6+incompatible/cli-plugins/plugin/plugin.go:51 +0x12a github.com/docker/cli/cli-plugins/plugin.Run(0x22e7400, {{0x21ad1e6, 0x5}, {0x21b6bb4, 0xb}, {0x24f1f10, 0x11}, {0x0, 0x0}, {0x0, ...}, ...}) github.com/docker/cli@v24.0.6+incompatible/cli-plugins/plugin/plugin.go:64 +0xe5 main.pluginMain() github.com/docker/compose/v2/cmd/main.go:37 +0xbf main.main() github.com/docker/compose/v2/cmd/main.go:75 +0x19c docker@monitor:~/docker/zabbix-docker$
`
sorry, where from did you install 2.28 version? I see latest available is 2.27.1: https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/
https://docs.docker.com/compose/release-notes/#2280 i had version 2.23 previously but that didnt work either.
what version is working for you?
2.27.1 is working fine. Docker version is the same as yours: 26.1.4.
sudo curl -L "https://github.com/docker/compose/releases/download/v2.27.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 60.1M 100 60.1M 0 0 24.2M 0 0:00:02 0:00:02 --:--:-- 28.0M docker@monitor:~/Downloads/zabbix-7.0.0$ sudo chmod +x /usr/local/bin/docker-compose docker@monitor:~/Downloads/zabbix-7.0.0$ docker-compose --version Docker Compose version v2.27.1
docker@monitor:~/docker/zabbix-docker$ ls build.json docker-compose_v3_alpine_mysql_local.yaml docker-compose_v3_ol_mysql_local.yaml env_vars build.sh docker-compose_v3_alpine_pgsql_latest.yaml docker-compose_v3_ol_pgsql_latest.yaml kubernetes.yaml compose_additional_components.yaml docker-compose_v3_alpine_pgsql_local.yaml docker-compose_v3_ol_pgsql_local.yaml LICENSE compose_databases.yaml docker-compose_v3_centos_mysql_latest.yaml docker-compose_v3_ubuntu_mysql_latest.yaml README.md compose.yaml docker-compose_v3_centos_mysql_local.yaml docker-compose_v3_ubuntu_mysql_local.yaml SECURITY.md compose_zabbix_components.yaml docker-compose_v3_centos_pgsql_latest.yaml docker-compose_v3_ubuntu_pgsql_latest.yaml zbx_env docker-compose_profile.yaml docker-compose_v3_centos_pgsql_local.yaml docker-compose_v3_ubuntu_pgsql_local.yaml docker-compose_v3_alpine_mysql_latest.yaml docker-compose_v3_ol_mysql_latest.yaml Dockerfiles docker@monitor:~/docker/zabbix-docker$ docker compose -f docker-compose_v3_alpine_mysql_latest.yaml up -d panic: interface conversion: interface {} is map[string]interface {}, not string
goroutine 1 [running]: github.com/compose-spec/compose-go/types.(StringList).DecodeMapstructure(0xc00088a200, {0x1cfbac0?, 0xc00035f6b0?}) github.com/compose-spec/compose-go@v1.20.0/types/stringOrList.go:35 +0x1e6 github.com/compose-spec/compose-go/loader.decoderHook({0x1cfbac0?, 0xc00035f6b0?, 0x252ec50?}, {0x1d79f00?, 0xc00088a200?, 0xc00035f6b0?}) github.com/compose-spec/compose-go@v1.20.0/loader/mapstructure.go:49 +0x2a5 github.com/mitchellh/mapstructure.DecodeHookExec({0x1e3a2a0?, 0x22e8148?}, {0x1cfbac0?, 0xc00035f6b0?, 0x1e3a2a0?}, {0x1d79f00?, 0xc00088a200?, 0x1e3a2a0?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:51 +0x134 github.com/compose-spec/compose-go/loader.Transform.ComposeDecodeHookFunc.func1({0x1cfbac0?, 0xc00035f6b0?, 0x418568?}, {0x1d79f00?, 0xc00088a200?, 0x4104a5?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:69 +0x10d github.com/mitchellh/mapstructure.DecodeHookExec({0x1e3a2a0?, 0xc0003619c0?}, {0x1cfbac0?, 0xc00035f6b0?, 0xc000804710?}, {0x1d79f00?, 0xc00088a200?, 0x1d25349?}) github.com/mitchellh/mapstructure@v1.5.0/decode_hooks.go:51 +0x134 github.com/mitchellh/mapstructure.(Decoder).decode(0xc0003f16c8, {0x1d25349, 0x8}, {0x1cfbac0?, 0xc00035f6b0?}, {0x1d79f00?, 0xc00088a200?, 0x22?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:459 +0x134 github.com/mitchellh/mapstructure.(Decoder).decodeStructFromMap(0xc0003f16c8, {0x0, 0x0}, {0x1e33dc0?, 0xc0006ff560?, 0x1e3a2a0?}, {0x21a7dc0?, 0xc00088a000?, 0x1?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:1411 +0xaa5 github.com/mitchellh/mapstructure.(Decoder).decodeStruct(0x1e3a2a0?, {0x0, 0x0}, {0x1e33dc0?, 0xc0006ff560?}, {0x21a7dc0?, 0xc00088a000?, 0x0?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:1235 +0x55c github.com/mitchellh/mapstructure.(Decoder).decode(0xc0003f16c8, {0x0, 0x0}, {0x1e33dc0?, 0xc0006ff560?}, {0x21a7dc0?, 0xc00088a000?, 0x50?}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:482 +0x25f github.com/mitchellh/mapstructure.(Decoder).Decode(0xc0003f16c8, {0x1e33dc0, 0xc0006ff560}) github.com/mitchellh/mapstructure@v1.5.0/mapstructure.go:417 +0xa7 github.com/compose-spec/compose-go/loader.Transform({0x1e33dc0, 0xc0006ff560}, {0x1f82ce0?, 0xc00088a000}, {0x0, 0x0, 0x0}) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:600 +0x1c5 github.com/compose-spec/compose-go/loader.LoadService({0xc0006236f0, 0xa}, 0xc0006236f0?) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:822 +0x6e github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc0002e9950}, {0xc0006280c0, 0x40}, {0xc0006236f0, 0xa}, 0x22e8238?, {0xc0006280c0, 0x21}, 0xc000806328, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:750 +0x105 github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc0002e9950}, {0xc0006280c0, 0x40}, {0xc0002d97f0, 0x10}, 0x10?, {0xc0006280c0, 0x21}, 0xc000806328, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:760 +0x1e5 github.com/compose-spec/compose-go/loader.loadServiceWithExtends({0x2515700, 0xc0002e9950}, {0xc000292190, 0x4c}, {0xc0003df788, 0x17}, 0xc000805cb8?, {0xc0001c2050, 0x21}, 0xc000806328, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:792 +0x754 github.com/compose-spec/compose-go/loader.LoadServices({0x2515700, 0xc0002e9950}, {0xc000292190, 0x4c}, 0x0?, {0xc0001c2050, 0x21}, 0x4d0000c0000c8e70?, 0xffffffffffffffff?) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:725 +0x21d github.com/compose-spec/compose-go/loader.loadSections({0x2515700, 0xc0002e9950}, {0xc000292190, 0x4c}, 0xc000698600?, {{0x0, 0x0}, {0xc0001c2050, 0x21}, {0xc000474810, ...}, ...}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:527 +0x2d8 github.com/compose-spec/compose-go/loader.load.func1() github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:279 +0x145 github.com/compose-spec/compose-go/loader.load({0x2515700, 0xc0002e9950}, {{0x0, 0x0}, {0xc0001c2050, 0x21}, {0xc000474810, 0x1, 0x1}, 0xc0004e4780}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:335 +0xeb8 github.com/compose-spec/compose-go/loader.LoadWithContext({0x2515700, 0xc0002e9950}, {{0x0, 0x0}, {0xc0001c2050, 0x21}, {0xc000474810, 0x1, 0x1}, 0xc0004e4780}, ...) github.com/compose-spec/compose-go@v1.20.0/loader/loader.go:250 +0x35d github.com/compose-spec/compose-go/cli.ProjectFromOptions(0xc00051e080) github.com/compose-spec/compose-go@v1.20.0/cli/options.go:410 +0x58a github.com/docker/compose/v2/cmd/compose.(ProjectOptions).ToProject(0xc000404a00, {0x2527960?, 0xc0000fe0f0?}, {0xc0004a3970, 0x0, 0x1}, {0xc000699878?, 0x4104d3?, 0xc000565308?}) github.com/docker/compose/v2/cmd/compose/compose.go:221 +0x12c github.com/docker/compose/v2/cmd/compose.upCommand.(ProjectOptions).WithServices.func4({0x2515700, 0xc0002e9950}, {0xc0004a3970, 0x0, 0x1}) github.com/docker/compose/v2/cmd/compose/compose.go:147 +0xee github.com/docker/compose/v2/cmd/compose.upCommand.(ProjectOptions).WithServices.Adapt.func6({0x2515700?, 0xc0002e9950?}, 0x2?, {0xc0004a3970?, 0x1?, 0x0?}) github.com/docker/compose/v2/cmd/compose/compose.go:109 +0x30 github.com/docker/compose/v2/cmd/compose.upCommand.(ProjectOptions).WithServices.Adapt.AdaptCmd.func7(0x0?, {0xc0004a3970, 0x0, 0x1}) github.com/docker/compose/v2/cmd/compose/compose.go:88 +0x1d8 github.com/docker/compose/v2/cmd/cmdtrace.Setup.wrapRunE.func2(0xc00003d000?, {0xc0004a3970?, 0x0?, 0x1?}) github.com/docker/compose/v2/cmd/cmdtrace/cmd_span.go:84 +0x65 github.com/spf13/cobra.(Command).execute(0xc000005b00, {0xc0002e96c0, 0x1, 0x1}) github.com/spf13/cobra@v1.7.0/command.go:940 +0x87c github.com/spf13/cobra.(Command).ExecuteC(0xc00056c300) github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.7.0/command.go:992 github.com/docker/cli/cli-plugins/plugin.RunPlugin(0xc000404960?, 0xc000005800, {{0x21ad1e6, 0x5}, {0x21b6bb4, 0xb}, {0x24f1f10, 0x11}, {0x0, 0x0}, ...}) github.com/docker/cli@v24.0.6+incompatible/cli-plugins/plugin/plugin.go:51 +0x12a github.com/docker/cli/cli-plugins/plugin.Run(0x22e7400, {{0x21ad1e6, 0x5}, {0x21b6bb4, 0xb}, {0x24f1f10, 0x11}, {0x0, 0x0}, {0x0, ...}, ...}) github.com/docker/cli@v24.0.6+incompatible/cli-plugins/plugin/plugin.go:64 +0xe5 main.pluginMain() github.com/docker/compose/v2/cmd/main.go:37 +0xbf main.main() github.com/docker/compose/v2/cmd/main.go:75 +0x19c
You check version of "docker-compose --version", then use "docker compose -f ...". Are you sure it is the same?
I am fairly sure, but if you want me to run a command so that we're certain we have the same environment I'm happy to do so
Try to use:
git clone https://github.com/zabbix/zabbix-docker.git zabbix-docker-test
cd zabbix-docker-test
docker-compose -f docker-compose_v3_alpine_mysql_latest.yaml up -d
The results look promising in this test, the containers started up bar the agent by the looks and i could even log in on the web browser.
docker-compose -f docker-compose_v3_alpine_mysql_latest.yaml up -d
[+] Running 9/9
✔ Network zabbix-docker-test_database Created 0.1s
✔ Network zabbix-docker-test_default Created 0.1s
✔ Network zabbix-docker-test_backend Created 0.0s
✔ Network zabbix-docker-test_frontend Created 0.1s
✔ Network zabbix-docker-test_tools_frontend Created 0.1s
✔ Container zabbix-docker-test-db-data-mysql-1 Started 0.5s
✔ Container zabbix-docker-test-mysql-server-1 Started 0.5s
✔ Container zabbix-docker-test-zabbix-web-nginx-mysql-1 Started 1.5s
✔ Container zabbix-docker-test-zabbix-server-1 Started 1.6s
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
add0e0f1cf62 zabbix/zabbix-web-nginx-mysql:alpine-7.0-latest "docker-entrypoint.sh" 6 seconds ago Up 4 seconds (health: starting) 0.0.0.0:81->8080/tcp, :::81->8080/tcp, 0.0.0.0:444->8443/tcp, :::444->8443/tcp zabbix-docker-test-zabbix-web-nginx-mysql-1
96d3c51a6d1b zabbix/zabbix-server-mysql:alpine-7.0-latest "/usr/bin/docker-ent…" 6 seconds ago Up 4 seconds 0.0.0.0:10052->10051/tcp, :::10052->10051/tcp zabbix-docker-test-zabbix-server-1
67e991479d49 mysql:8.0-oracle "docker-entrypoint.s…" 6 seconds ago Up 5 seconds zabbix-docker-test-mysql-server-1
docker@monitor:~/docker/zabbix-docker-test$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
add0e0f1cf62 zabbix/zabbix-web-nginx-mysql:alpine-7.0-latest "docker-entrypoint.sh" 14 seconds ago Up 12 seconds (healthy) 0.0.0.0:81->8080/tcp, :::81->8080/tcp, 0.0.0.0:444->8443/tcp, :::444->8443/tcp zabbix-docker-test-zabbix-web-nginx-mysql-1
96d3c51a6d1b zabbix/zabbix-server-mysql:alpine-7.0-latest "/usr/bin/docker-ent…" 14 seconds ago Up 11 seconds 0.0.0.0:10052->10051/tcp, :::10052->10051/tcp zabbix-docker-test-zabbix-server-1
67e991479d49 mysql:8.0-oracle "docker-entrypoint.s…" 14 seconds ago Up 13 seconds zabbix-docker-test-mysql-server-1
d333944996f2 busybox "sh" 14 seconds ago Exited (0) 13 seconds ago zabbix-docker-test-db-data-mysql-1
Good! So check your environment :-) docker files itself are correct.
indeed having more luck using docker-compose instead of docker compose. Do you know why this might be? as the Documentation shows the command to be docker compose -f ./docker-compose_v3_alpine_mysql_latest.yaml up
You just need to fix your docker repository, because Ubuntu 22 does not have compose v2.28.0 as stable version :-)
You need to use docker-compose because you installed compose as standalone application, not plugin for docker.
SUMMARY
Cloned the repo into my ubuntu vm but when trying to run the compose files i get panic: interface conversion: interface {} is map[string]interface {}, not string
OS / ENVIRONMENT / Used docker-compose files
Docker version 26.1.4, build 5650f9b Docker Compose version v2.28.0
Linux monitor.localdomain 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian UBUNTU_CODENAME=jammy
docker-compose_v3_alpine_mysql_latest.yaml
CONFIGURATION
Nothing has been changed in the .env or any of the files. I have followed the documentation.
STEPS TO REPRODUCE
docker compose docker-compose_v3_alpine_mysql_latest.yaml up -d
EXPECTED RESULTS
I expect the containers within the compose to start up. Back in version 6.4 I had it running no problem about a month ago.
ACTUAL RESULTS
The actual results in some issue to do with mapping? I don`t get it.