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

Add more common docker commands to context menu

Open batjko opened this issue 8 years ago • 7 comments

e.g.

  • docker run -it [thingy] /bin/bash (ideally user-configurable) to quickly run a shell command inside the container
  • remove container (and remove image, once #2 comes around),
  • stop/start multiple containers (currently it's only one at a time)
  • view logs of a container (both ad-hoc and tailing)

I'm sure there are a bunch more that people will find useful.

batjko avatar Jun 16 '17 07:06 batjko

  • [x] remove container
  • [x] view logs of a container

For (both ad-hoc and tailing) of viewing logs, could you explain the difference of ad-hoc and tailing?

formulahendry avatar Jun 16 '17 13:06 formulahendry

@formulahendry Thanks for responding so quickly. The difference is that ad-hoc would just give you the logs and exit. Tailing would be like a watched process that updates live when there are new log entries added.

batjko avatar Jun 19 '17 08:06 batjko

+1, really appreciate these features. Could I also extend this request to include the docker exec ${containerName} ${command) functionality?

Sub-Xaero avatar Jun 25 '17 13:06 Sub-Xaero

docker exec ${containerName} ${command)

@Sub-Xaero , what ${command) do you want to run?

formulahendry avatar Jun 26 '17 02:06 formulahendry

Any Linux command really: ls, cat, touch. I.e. When running a server, and wanting to quickly get the contents of the document root: Docker exec wilful_barabus ls /var/www/html should print the contents of the document root; without attaching to the container.

On 26 Jun 2017, at 03:35, Jun Han [email protected] wrote:

docker exec ${containerName} ${command)

@Sub-Xaero , what ${command) do you want to run?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Sub-Xaero avatar Jun 26 '17 05:06 Sub-Xaero

  • [x] Add 'Execute' and 'Execute In Bash' to context menu

formulahendry avatar Jun 29 '17 03:06 formulahendry

This is going to make my life so much easier. Thanks so much ⭐On 29 Jun 2017 4:32 am, Jun Han [email protected] wrote: Add 'Execute' and 'Execute In Bash' to context menu

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

Sub-Xaero avatar Jun 29 '17 05:06 Sub-Xaero