Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compose.yaml seems to have to many lines #63

Open
DarkDau opened this issue Jul 9, 2023 · 0 comments
Open

compose.yaml seems to have to many lines #63

DarkDau opened this issue Jul 9, 2023 · 0 comments

Comments

@DarkDau
Copy link

DarkDau commented Jul 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant