Ubuntu – Can I install Visual Studio Code in Docker for security

flatpakSecuritysnapsoftware installationvisual-studio-code

Would installing Visual Studio Code in a Docker container offer better isolation than a snap or Flatpack?

Best Answer

  • Code_OSS AppImage

    Unlike other applications, AppImages do not need to be installed before they can be used, however they need to be marked as executable before they can be run. This is a Linux security feature.

    Visual Studio Code OSS Edition:

    Download the Code_OSS AppImage and make it executable using your file manager or by entering the following commands in a terminal:

    chmod +x ./*.AppImage
    

    Then double-click the AppImage in the file manager to open it.

    Sandboxing Code_OSS:

    If you want to restrict what Code_OSS can do on your system, you can run the AppImage in a sandbox like Firejail. This is entirely optional and currently needs to be configured by the user.

    enter image description here