In some specific conditions, there is no output from the container at all, and dockerized just exits.
Run bin/dockerized -v --shell perl -c env | tee ~/shell.log
Dockerized root: /home/runner/work/dockerized/dockerized
Loading: '/home/runner/work/dockerized/dockerized/.env'
Compose files: /home/runner/work/dockerized/dockerized/docker-compose.yml
Setting up shell in container for perl...
Entrypoint: [/bin/bash]
Command: [-c env]
Preparing compose environment...
Network dockerized_default Creating
Network dockerized_default Created
Volume "dockerized_node_modules" Creating
Volume "dockerized_node_modules" Created
Volume "dockerized_python_modules" Creating
Volume "dockerized_python_modules" Created
Volume "dockerized_pip_cache" Creating
Volume "dockerized_pip_cache" Created
Volume "dockerized_go_cache" Creating
Volume "dockerized_go_cache" Created
Volume "dockerized_home" Creating
Volume "dockerized_home" Created
Running one-off container...
Container exited with code 0.
Most mysterious bug ever.
Expected:
dockerized --shell <command> -c envshould print the current environmentActual:
In some specific conditions, there is no output from the container at all, and dockerized just exits.
Observations:
bash. Switching toshfor--shellfixes the bug.shis not a universal fix.rustcusesshand still doesn't work.docker system prune -afwon't help to reproduce it, running without a tty. (true | dockerized --shell perl -c env | cat)docker-compose run --rm <command>always seems to work.Hypothese (and motivation):
docker-compose runanddockerizedecho helloworldthe first time didn't fix perl, but disabling TTY did. So TTY is involved.envcommandExcluded causes:
dockerized --pull. Running this before the shell test doesn't make a difference.