question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Launching docker container in interactive mode

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yuvipandacommented, Apr 15, 2019

@betatim I like the idea of us printing the command.

0reactions
betatimcommented, Apr 15, 2019

Maybe a quick win is to have repo2docker --interactive ... (or some such) print out the docker run command to use as a form of syntactic sugar. Have you tried https://github.com/d11wtq/dockerpty?

Read more comments on GitHub >

github_iconTop 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 >
docker start - Docker Documentation
docker start : Start one or more stopped containers.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found