Skip to content

Shell exits before accepting command when using --init option #5712

@uk-ar

Description

@uk-ar
  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: E8B1A495-7656-487E-BCCE-922AE82AEA48/20210521091209

Expected behavior

Shell accepts command even if using --init option

$ sudo docker run -it --init ubuntu
root@6eed550e8eab:/# exit
exit

Actual behavior

Shell exits before accepting command when using --init option

docker run --init -it ubuntu
root@e43bc9b185ec:/# e%

Information

  • Is it reproducible? Yes
  • Is the problem new? Yes
  • Did the problem appear with an update? Not sure, but it works as I expected on Linux.
  • A reproducible case if this is a bug, Dockerfiles FTW. Public ubuntu image.
  • macOS Version: 11.3.1
  • Intel chip or Apple chip: Apple M1
  • Docker Desktop Version:
% docker version
Client: Docker Engine - Community
 Version:           20.10.6
 API version:       1.41
 Go version:        go1.16.3
 Git commit:        370c289
 Built:             Mon Apr 12 13:01:13 2021
 OS/Arch:           darwin/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.6
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       8728dd2
  Built:            Fri Apr  9 22:44:13 2021
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.4.4
  GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
 runc:
  Version:          1.0.0-rc93
  GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Steps to reproduce the behavior

  1. docker run --init -it ubuntu
  2. input any charactor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions