How can configure Podman with Visual Studio Code?

Rebai Hamida
2 min readMar 21, 2023

--

To configure Podman with Visual Studio Code, you can use the Remote — Containers extension. This extension allows you to use a container as a development environment within Visual Studio Code, and supports Podman as a container runtime.

Here are the steps to configure Podman with Visual Studio Code using the Remote — Containers extension:

  1. Install the Remote — Containers extension: Open Visual Studio Code and go to the Extensions Marketplace. Search for “Remote — Containers” and install the extension.
  2. Create a Podman container: Create a Podman container with the tools and dependencies you need for your project. You can do this using the Podman CLI, or by using a Dockerfile and running the podman build command.
  3. Open Visual Studio Code in the container: In Visual Studio Code, open the Command Palette (Ctrl+Shift+P on Windows, Cmd+Shift+P on macOS) and search for "Remote-Containers: Open Folder in Container". Select the folder containing your project, and choose "Select Folder" to open Visual Studio Code in the container.
  4. Install any additional extensions: If you need to install any additional extensions or dependencies, you can do this within the container using the Visual Studio Code UI or CLI.
  5. Develop and test your code: With Visual Studio Code running in the container, you can develop and test your code within the container environment. This allows you to ensure that your code works consistently across different development and production environments.

By using the Remote — Containers extension with Podman, you can simplify your development workflow and ensure that your code is developed and tested in a consistent environment.

--

--

Rebai Hamida
Rebai Hamida

Written by Rebai Hamida

Senior Cloud Application Architect, Microsoft MVP in Developer Technologies, MCT, Technical writer, Speaker

No responses yet