containerd / containerd/nerdctl
nerdctl compose does not support tty: true?
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
When running 'nerdctl compose up -d' with a compose-file including 'tty: true' that parameter is ignored causing the container to exit immediately after creation as the entrypoint is an interactive shell...
bur@lima-default:/Users/bur/coding/automationbase$ nerdctl compose up -d
WARN[0000] The "AUTOMATIONBASE_CODE" variable is not set. Defaulting to a blank string.
WARN[0000] The "AUTOMATIONBASE_WINGPY" variable is not set. Defaulting to a blank string.
WARN[0000] The "AUTOMATIONBASE_WINGMENCHAINS" variable is not set. Defaulting to a blank string.
WARN[0000] The "AUTOMATIONBASE_NTC_TEMPLATES" variable is not set. Defaulting to a blank string.
INFO[0000] Creating network automationbase_default
WARN[0000] Ignoring: service base: [Tty]
WARN[0000] Ignoring: volume: Bind: [CreateHostPath]
INFO[0000] Ensuring image devnet.wingmen.dk/automationbase:latest
INFO[0000] Creating container wingmen_automationbase
bur@lima-default:/Users/bur/coding/automationbase$
bur@lima-default:/Users/bur/coding/automationbase$ nerdctl compose ps
NAME COMMAND SERVICE STATUS PORTS
wingmen_automationbase "/bin/bash" base Exited (0) 3 seconds ago
bur@lima-default:/Users/bur/coding/automationbase$
Running the same container with 'nerdctl run -it ' works fine and I get an interactive shell as expected...
Are the 'tty: true' keyword not supported in nerdctl compose?
Thank you in advance
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.