-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
Today I updated my debian, and had a problem with docker compose version (v2.34.0)
I have fab as an alias of: docker compose run -it --rm -e MONGO_WRITE_USER="$MONGO_WRITE_USER" -e MONGO_WRITE_PWD="$MONGO_WRITE_PWD" -e DOCKER_HOST_USER="$USER" dc-fab fab "$@"
When running the following command:
fab download-col apurata pos_client
I was getting the error pasted below. But when removing the "-e" flags, it worked. It was broken even with -e MYVAR="hello"
Then I installed the previous version of docker (v2.33.1) and it worked again.
~/apurata/webserver master ⇡1 ❯ fab download-col apurata pos_client
panic: assignment to entry in nil map
goroutine 1 [running]:
github.com/compose-spec/compose-go/v2/types.MappingWithEquals.OverrideBy(...)
github.com/compose-spec/compose-go/v2@v2.4.9/types/mapping.go:49
github.com/docker/compose/v2/pkg/compose.applyRunOptions(0xc000568c60, _, {0xc0000d4900, 0x0, {0x0, 0x0}, {0x7ffeef3da5a3, 0x6}, {0xc000485460, 0x4, ...}, ...}) github.com/docker/compose/v2/pkg/compose/run.go:154 +0x613
github.com/docker/compose/v2/pkg/compose.(*composeService).prepareRun(0xc00028bf00, {_, _}, _, {0xc0000d4900, 0x0, {0x0, 0x0}, {0x7ffeef3da5a3, 0x6}, ...}) github.com/docker/compose/v2/pkg/compose/run.go:66 +0xea
github.com/docker/compose/v2/pkg/compose.(*composeService).RunOneOffContainer(0xc00028bf00, {_, _}, _, {0xc0000d4900, 0x0, {0x0, 0x0}, {0x7ffeef3da5a3, 0x6}, ...}) github.com/docker/compose/v2/pkg/compose/run.go:35 +0x9b
github.com/docker/compose/v2/cmd/compose.runRun({_, _}, {_, _}, _, {0xc000518b00, {0x7ffeef3da5a3, 0x6}, {0xc000485460, 0x4, ...}, ...}, ...) github.com/docker/compose/v2/cmd/compose/run.go:329 +0xab6
github.com/docker/compose/v2/cmd/compose.runCommand.func2({0x2c6e960, 0xc000708140}, {0xc000150a38?, 0xc0000061c0?, 0x215dbca?}) github.com/docker/compose/v2/cmd/compose/run.go:197 +0x299
github.com/docker/compose/v2/cmd/compose.runCommand.Adapt.func5({0x2c6e960?, 0xc000708140?}, 0x2?, {0xc000485450?, 0x2c52d88?, 0x28a00d0?}) github.com/docker/compose/v2/cmd/compose/compose.go:138 +0x30
github.com/docker/compose/v2/cmd/compose.runCommand.Adapt.AdaptCmd.func7(0xc0001f7508, {0xc000485450, 0x5, 0xd}) github.com/docker/compose/v2/cmd/compose/compose.go:122 +0x143
github.com/docker/cli/cli-plugins/plugin.RunPlugin.func1.1.2(0xc0001f7508, {0xc000485450, 0x5, 0xd})
github.com/docker/cli@v28.0.1+incompatible/cli-plugins/plugin/plugin.go:65 +0x6c
github.com/docker/compose/v2/cmd/cmdtrace.Setup.wrapRunE.func2(0xc0001f7508?, {0xc000485450?, 0x5?, 0xd?}) github.com/docker/compose/v2/cmd/cmdtrace/cmd_span.go:85 +0x63
github.com/spf13/cobra.(*Command).execute(0xc0001f7508, {0xc0005925c0, 0xd, 0xd})
github.com/spf13/cobra@v1.9.1/command.go:1015 +0xa94
github.com/spf13/cobra.(*Command).ExecuteC(0xc00051cf08)
github.com/spf13/cobra@v1.9.1/command.go:1148 +0x40c
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.9.1/command.go:1071
github.com/docker/cli/cli-plugins/plugin.RunPlugin(0xc00024b180, 0xc0000e4908, {{0x2876b88, 0x5}, {0x2880cab, 0xb}, {0x2c3cdd0, 0x7}, {0x0, 0x0}, ...}) github.com/docker/cli@v28.0.1+incompatible/cli-plugins/plugin/plugin.go:80 +0x145
github.com/docker/cli/cli-plugins/plugin.Run(0x29d7400, {{0x2876b88, 0x5}, {0x2880cab, 0xb}, {0x2c3cdd0, 0x7}, {0x0, 0x0}, {0x0, ...}}) github.com/docker/cli@v28.0.1+incompatible/cli-plugins/plugin/plugin.go:95 +0x105
main.pluginMain()
github.com/docker/compose/v2/cmd/main.go:38 +0xa5
main.main()
github.com/docker/compose/v2/cmd/main.go:98 +0x19c
I don't think you'll need it, but here is my definition of dc-fab:
dc-fab:
profiles: [manually-launched]
build:
context: ./webserver
dockerfile: Dockerfile-fab
volumes:
- ./webserver:/workdir
# We copy ~/.ssh to allow fabric commands to work, e.g. fab download-docs ...
- ~/.ssh:/root/.ssh
env_file:
- ~/.apurata/.env_personal # e.g. mongo_pwd to use with fabric
working_dir: /workdir # workdir is used when running mongo-client
Metadata
Metadata
Assignees
Labels
No labels