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

🐛 Don't remove container created by "Run Image" automatically #1274

Closed
wants to merge 1 commit into from

Conversation

xgdgsc
Copy link

@xgdgsc xgdgsc commented Sep 16, 2019

solves #1217

@xgdgsc xgdgsc requested a review from a team as a code owner September 16, 2019 08:16
@bwateratmsft
Copy link
Contributor

Seems like we should have a setting controlling this? @philliphoff what do you think?

@bwateratmsft bwateratmsft changed the title 🐛 rm rm 🐛 Don't remove container created by "Run Image" automatically Sep 16, 2019
@philliphoff
Copy link
Contributor

@bwateratmsft While I empathize with losing work within an unintentionally-exited container--that sucks!--given the intentionally ephemeral nature of containers, I'm not sure simply removing --rm from the command is the best option (even aside from the change to today's behavior). That said, I would support an extension-level setting that allows the user to disable use of --rm switch for those commands.

@StephenWeatherford
Copy link
Contributor

I've always wanted to have settings to control args for all these commands. It would need to be done in a well-planned way.

@bwateratmsft
Copy link
Contributor

I've always wanted to have settings to control args for all these commands. It would need to be done in a well-planned way.

@StephenWeatherford That's fair. I think then it would be related to #38. If we make the container run a task, the user can specify anything as options to the task (including --rm and anything else). However, tasks only make sense in the context of a workspace so it's not a perfect solution...

@eine
Copy link

eine commented Dec 15, 2019

Related to #1001 and #1494 (#331), I think that 'Run' should open a parameter selection menu with multiple select and text boxes boxes:

  • Select boxes:
    • daemon, interactive: mutually exclusive.
    • rm
  • Text boxes:
    • port
    • volume
    • any

Defaults might be set by the caller, so that different preset options are shown depending on 'Run', 'Run Interactive' or if the source is a Task (#1311). If the user does not want to change anything, just hitting enter will work. Those who want to do one-time modifications can do so without modifying files or manually writting the command in the terminal.

@bwateratmsft
Copy link
Contributor

This will be resolved by #1596 / #1649

@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants