0

Is there a way to run/create/launch a container from an image in VS Code (e.g., one I downloaded from Docker Hub), or do I need to do it from outside VS Code (e.g., docker run from the command-line, or the Docker app, ...)?

I have the Docker and Docker Explorer extensions installed, but I don't see any docker run functionality in them (e.g., in the Command Palette, the sidebar, or right-clicking on an image).

2
  • 1
    Playing with the VSCode Docker extension, there's a very limited ability to launch a container – if you already have the image locally, you can right-click, "Run" it – but there are almost no options available for persistent storage, port mapping, or any other configuration. Right-clicking on a docker-compose.yml file gives a couple more options. Commented Nov 17, 2023 at 1:06
  • Thanks @DavidMaze. Hmm, I don't even see the "right-click > "Run" it. Commented Nov 17, 2023 at 1:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.