Working with the SDK in a Docker container

Commands of the KasperskyOS SDK Extension (for example, to build a project) can be executed within a Docker container. This capability lets you work with KasperskyOS Community Edition if your computer has an installed Linux OS version that is not compatible with the SDK.

To work with the SDK in a Docker container:

  1. Open your project in Visual Studio Code and wait for the KasperskyOS SDK Extension to complete activation (you should see the extension buttons in the lower panel).
  2. If the extension has not activated automatically, run the command KOS: Activate extension in this directory.
  3. Run the command KOS: Open in Dev Container.

    After this command is executed, the Visual Studio Code restarts and Docker container initialization begins.

  4. Wait for the Docker container to initialize and start.

    It may take several minutes for the container to start for the first time because the image is being built and the necessary packages are being loaded during this time. If you want to track the initialization and startup process, click the notification containing the text Connecting to Dev Container. When the container is running, the following text is added to the Visual Studio Code window title: Dev Container: KOS Dev.

  5. Wait for the KasperskyOS SDK Extension to complete activation again. If the extension has not activated automatically, run the command KOS: Activate extension in this directory.

Now the extension commands for working with the SDK will be executed within the Docker container.

Page top