Skip to content

compose.yaml seems to have to many lines #63

Description

@DarkDau

Hello, I have discovered docker-autocompose. It would very helpful!
Which makes me wonder. when I use it to query a container, also like this:
"docker run --rm -v /var/run/docker.sock:/var/run/docker.sock red5d/docker-autocompose wikijs >docker-compose.yaml
WARNING: IPv4 forwarding is disabled. Networking will not work."
so far so good.

the compose.yaml is written, then when i test it with docker-compose config i get "docker-compose config.
ERROR: Invalid interpolation format for "environment" option in service "wikijs": "PS1=$(whoami)@$(hostname):$(pwd)$ ""
Error messages, even if I delete the PS1 entry,
there is an error:"
docker-compose config

Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in .
load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
command()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 122, in perform_command
handler(command, command_options)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 358, in config
compose_config = get_config_from_options('.', self.toplevel_options, additional_options)
File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 91, in get_config_from_options
return config.load(
... many more entries

The generated compose.yaml looks good at the beginning.
When I remove the bunch of **label: Entries**, the config check is ok.
So my question is **about label:** why is it, can one disable this? 
**if I delete all entries for label: then there is no further error, so I use it as workaroud** 
===
I'm running a "Debian GNU/Linux 11 (bullseye)"
Docker -v: Docker version 20.10.5+dfsg1,build 55c4c88

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions