Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.76k stars 197 forks source link

unable to start container from yml file #31

Closed Mio3000 closed 2 years ago

Mio3000 commented 2 years ago

when im trying to start container from exported yml file, im receiving following error message: root@openmediavault:~/smokeping# docker-compose up -d ERROR: Invalid interpolation format for "environment" option in service "smokeping": "PS1=$(whoami)@$(hostname):$(pwd)\$ "

the environment looks like this: version: "3" services: smokeping: container_name: smokeping entrypoint:

Red5d commented 2 years ago

Looks like you might need 2 $ signs: https://docs.docker.com/compose/environment-variables/#the-env-file

You wouldn't normally need to set a PS1 variable for a docker container since most of the time you won't be using the cli inside the container, so you could also just delete that line.