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

Restart container #218

Open
georgkrause opened this issue Oct 20, 2022 · 1 comment
Open

Restart container #218

georgkrause opened this issue Oct 20, 2022 · 1 comment
Assignees
Labels
enhancement 🎉 New feature or request

Comments

@georgkrause
Copy link
Contributor

What is the new feature about?

Sometimes containers are crashing, eg when I mount my source code into the local container and save some broken code. In this case I want to run gefyra restart $container-name to get it back up and running.

Why would such a feature be important to you?

Currently I can just stop and delete the container and execute gefyra run again, which is a loopway and additional work.

Anything else we need to know?

docker restart $container does partly work, but all the bridging will be broken. As soon as I want to connect to network services, it doesn't work anymore.

@georgkrause georgkrause added the enhancement 🎉 New feature or request label Oct 20, 2022
@SteinRobert
Copy link
Contributor

This is a really good idea! I was briefly thinking about it - the main challenge here is probably to restore the bridge / run command / namespace ... parameters since these are not persisted anywhere.
In the past we had a look into labels - so an idea could be just to add labels to the container when it is actually created (it's only possible when the container is actually created).
Anyhow - this probably needs to investigation whether labels are a feasible solution to persist the containers flags.

@SteinRobert SteinRobert self-assigned this Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🎉 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants