Launching docker container in interactive mode
See original GitHub issueI was expecting repo2docker https://github.com/binder-examples/conda-freeze /bin/bash
to give me a shell inside the container. Instead it builds the image and then exits straight away.
I think this is because we would have to do the equivalent of docker run -it <image> /bin/bash
but don’t. Should we add a --interactive
CLI flag that turns on this behaviour?
Note: a solution to this is outlined in https://github.com/jupyter/repo2docker/issues/599#issuecomment-483402517. This would be a good way to get involved with contributing to repo2docker and something to help out with in general.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Run Docker Container in Interactive Mode
Docker Container Interactive Mode for Redis Container We can first start a Redis Docker container in background using the below command. This ...
Read more >How to Use Docker Run Command with Examples
Docker allows you to run a container in interactive mode. This means you can execute commands inside the container while it is still...
Read more >start docker container interactively - Stack Overflow
If i understood correctly, you want to see the logs from container in terminal, same as when you run the image with docker...
Read more >Running Containers – Introduction to Docker - GitHub Pages
To use a Docker image as a particular instance on a host machine you run it as a container. You can run in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@betatim I like the idea of us printing the command.
Maybe a quick win is to have
repo2docker --interactive ...
(or some such) print out thedocker run
command to use as a form of syntactic sugar. Have you tried https://github.com/d11wtq/dockerpty?