Skip to content

currently flag -i and -d cannot be specified together #317

Closed

Description

@Subhajit-Dutta

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

Activity

  1. AkihiroSuda commented on Aug 18, 2021

    @AkihiroSuda
    Member

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

  2. Subhajit-Dutta commented on Aug 18, 2021

    @Subhajit-Dutta
    Author

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

  3. AkihiroSuda commented on Aug 18, 2021

    @AkihiroSuda
    Member

    Unimplemented

  4. added this to the milestone on Aug 18, 2021
  5. eolix commented on Oct 21, 2021

    @eolix

    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)

  6. AkihiroSuda commented on Oct 21, 2021

    @AkihiroSuda
    Member

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

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

  7. removed this from the milestone on Dec 9, 2023
  8. mayur-tolexo commented on Jun 22, 2026

    @mayur-tolexo
    Contributor

    /assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions