nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

currently flag -i and -d cannot be specified together

Open Subhajit-Dutta opened this issue 4 years ago • 5 comments

Hello Team

I am trying to execute below command

nerdctl run -t -d -i
-e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose'
-e JAVA_OPTS='-Djava.net.preferIPv4Stack=true -Xmx512m'
-p 3025:3025 -p 3110:3110 -p 3143:3143
-p 3465:3465 -p 3993:3993 -p 3996:3996
ARTIFACTORY/ORG/greemail:1.5.4

It is giving below error

FATA[0043] currently flag -i and -d cannot be specified together (FIXME)

Please help me with solution . I am using nerdctl-full-0.11.0-linux-amd64.tar.gz

Subhajit-Dutta avatar Aug 18 '21 06:08 Subhajit-Dutta

For most apps nerdctl run -t -d -i can be substituted with nerdctl run -d

AkihiroSuda avatar Aug 18 '21 06:08 AkihiroSuda

How I can keep both interactive and detach mode together in nerdctl greemail container need both options to be enabled

Subhajit-Dutta avatar Aug 18 '21 08:08 Subhajit-Dutta

Unimplemented

AkihiroSuda avatar Aug 18 '21 08:08 AkihiroSuda

For most apps nerdctl run -t -d -i can be substituted with nerdctl run -d

Not if you need to run a container as daemon and immediately interact with it:

~ lima nerdctl run -it --rm alpine uname
Linux

vs.

~ lima nerdctl run -d alpine uname
1a54ff64fd44f3e7789aae9e432b72366f253acdde8e5dd073a61c98029eaa74

Obviously on the second instance that's the stdout for the container id.

@AkihiroSuda what's the roadmap to v1.0? Any chance we can bring this milestone forward if someone works on this? (I'm volunteering)

eolix avatar Oct 21 '21 12:10 eolix

My knowledge about TTY is not enough yet to understand, implement, and test this.

Contribution with well-written integration tests would be highly appreciated 🙏

AkihiroSuda avatar Oct 21 '21 12:10 AkihiroSuda