vscode-docker icon indicating copy to clipboard operation
vscode-docker copied to clipboard

Add "start all containers" option

Open jeffreyyjp opened this issue 7 years ago • 9 comments

Add "start all containers" option

jeffreyyjp avatar Nov 28 '19 10:11 jeffreyyjp

@messi-yang Could you provide a little more context to this request? You'd like an option (e.g. in the containers tree view) to start all existing containers, or only those in a particular state (e.g. paused), etc.?

philliphoff avatar Dec 02 '19 18:12 philliphoff

@philliphoff Sure, I want an option to start all existing containers in containers list view. Same as the command: docker start $(docker ps -a -q). If some containers are already started, we just skip them. image

jeffreyyjp avatar Dec 03 '19 07:12 jeffreyyjp

While a "start all" command may not be the best overall option, 1.38 of VS Code added support for multi-select within tree views which may provide reasonably equivalent behavior.

philliphoff avatar Dec 06 '19 19:12 philliphoff

@philliphoff Could you provide the right action for multi-select within tree views, or the keyboard shortcuts? My environment is Mac OS 10.15.1. Thanks.

jeffreyyjp avatar Dec 09 '19 01:12 jeffreyyjp

@messi-yang Sorry, that was just intended to be a note for future implementors. VS Code (relatively) recently provided support for tree views to allow multi-selection, but individual tree views still have to opt-in to that support and update their command handlers to accommodate the change--that means code changes before users can actually use multi-select. That enhancement is being looked at for the future, but I can't say for sure when it might end up in the product.

philliphoff avatar Dec 09 '19 18:12 philliphoff

@philliphoff Got it, very thanks for providing this information to me.

jeffreyyjp avatar Dec 12 '19 07:12 jeffreyyjp

I have created PR #1620 to address this feature request.

allanwright avatar Feb 13 '20 10:02 allanwright

This would also be covered by the fix for #331.

bwateratmsft avatar Feb 13 '20 14:02 bwateratmsft

Multi-select is now available for many commands in Docker extension version 1.0.0.

bwateratmsft avatar Mar 09 '20 17:03 bwateratmsft