Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a CMD provided in an appendix is ignored at run (not during build) #1374

Open
itcarroll opened this issue Oct 25, 2024 · 0 comments
Open

a CMD provided in an appendix is ignored at run (not during build) #1374

itcarroll opened this issue Oct 25, 2024 · 0 comments

Comments

@itcarroll
Copy link

Bug description

The use of CMD in an appendix is not igrnored for build but is somehow ignored for run.

Expected behaviour

$ repo2docker --appendix 'CMD ["jupyter", "lab", "--ip", "0.0.0.0", "--no-browser"]' <source-repository>

Should build and run a docker container using the command defined by CMD.

Actual behaviour

The image is built with the CMD, but still runs with the "built-in" CMD. I don't know how.

Here's the end of the build

Step 51/52 : CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
 ---> Running in e62e373bfe20
Removing intermediate container e62e373bfe20
 ---> 7b31488d3ac1
Step 52/52 : CMD ["jupyter", "lab", "--ip", "0.0.0.0", "--no-browser"]
 ---> Running in ceba06478f9a
Removing intermediate container ceba06478f9a
 ---> 7ace45a225ff

But then jupyter notebook launches. If instead I docker run 7ace45a225ff, then I get jupyter lab.

Your personal set up

  • OS: macOS Sonoma 14.7
  • Docker version:
GSLAL0320120132 % docker version                                                                                                                                                                   25T16:41
Client:
 Cloud integration: v1.0.23
 Version:           20.10.14
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 24 01:49:20 2022
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.7.0 (77141)
 Engine:
  Version:          20.10.14
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.15
  Git commit:       87a90dc
  Built:            Thu Mar 24 01:46:14 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.5.11
  GitCommit:        3df54a852345ae127d1fa3092b95168e4a88e2f8
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
  • repo2docker version: 2024.07.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant