---
title: "Container Web Display"
slug: "container-web-display"
tags: ["lgc"]
updated: 2024-09-09T20:06:13Z
published: 2024-09-09T20:06:13Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skillable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Container Web Display

In Skillable Studio, Containers can be configured to expose specific ports. Each exposed port will be dynamically mapped to an external port on the lab host server when the lab is deployed. Skillable uses a proxy to secure the web application, and adds an SSL certificate, to prevent unauthorized users from accessing your content.

Selecting the Web Display option for the exposed port will allow the container to output through the exposed port and display in a web browser.

Web display of exposed container ports may not work with all container images. The author of the container image must enable port output support in the container image for this to work correctly.

## Configuring a Container Profile for Web Display

### Container Configuration

1. **Navigate to the container** you wish to output the display, or create a new container.
2. Select **Edit** on the container profile.
3. (Optional) Enter an **Entry Point** if needed. An Entry Point allows you to set or override the container's default entry point. `Example: /bin/bash`
4. Enter any **Commands** that the container will need. Commands may be needed for your container to perform a specific way, or output on an exposed port. Consult the documentation for the author or publisher of your container image for more information.
5. Enter any **Environment Variables** that the container will need.
6. Enter the port to expose and output the container display to. The port entered should be the port that the container author suggests using for display output.
7. (Optional) Enter a **Start Path** if needed. A Start Path allows signing in to the web application in the container, using a URL parameter. `Example: app/login`
8. Select **Web** on the **Display** option.
9. Decide if the container should use relative links or absolute links. These links determine how the container's web application generates links to pages within the web application. Enable this option to use relative links within the container. Disabling will cause the container to use absolute links.
10. **Save** the container profile.

### Lab Profile Configuration

1. **Navigate to the Lab Profile** you wish to use the container image with.
2. On the **Networks** tab, select **Add Network** to add a network. Container Web Display requires a network on the lab profile.
3. Ensure that **Web Access** is enabled on your network. If this is not enabled, Container Web Display will not function properly.
4. On the **Containers** tab, select **Add Container Image**.
  1. **Search** for the name of **your container**.
  2. **Select** your **container**.
  3. Select **OK**.
5. Select **Save** to save your lab profile.

Your lab should now be configured to display the output of the container to a web browser.

## Example Configuration

This example configuration uses the [Visual Studio Code in the browser](https://hub.docker.com/r/codercom/code-server) to output Visual Studio Code to port 8080 and display in a web browser.

![Visual Studio Code container in a lab](https://cdn.document360.io/a298db04-a0fe-47e0-bfe3-c52d6f9d7c8c/Images/Documentation/vs-code-browser-hello-world.png)

1. **Create** a new **container profile**.
2. In the **Name** field, enter `codercom/code-server`.
3. Select the **Registry** that the container image will use. If you do not have a container registry, choose **Docker Hub**.
4. In the **Commands** field, enter the following commands. Each command should be on a separate line.
  - `--auth=none`
  - `--disable-telemetry`
  - `--disable-update-check`
  - `/home/coder`
5. Enter the following environmental variables. If there were multiple environment variables, they would need to each be on a separate line.
  - `PASSWORD=password`
6. Enter the following exposed port:
  - `8080`
7. Select **Web** on the **Display** option.
8. Verify your container matches the image below and then select **Save** to save the container image.

![Container Image settings configuration page 1.png](https://cdn.document360.io/a298db04-a0fe-47e0-bfe3-c52d6f9d7c8c/Images/Documentation/Container%20Image%20settings%20configuration%20page%201.png)

![Container Image settings configuration page 2.png](https://cdn.document360.io/a298db04-a0fe-47e0-bfe3-c52d6f9d7c8c/Images/Documentation/Container%20Image%20settings%20configuration%20page%202.png)

## Related Information

- [Containers Images](/v1/docs/container-images)
- [Container Registries](/v1/docs/container-registries)
- [Container Volumes](/v1/docs/container-volumes)

Skillable Studio supports containers via Docker. Containers are a lightweight option compared to full Virtual Machines. Container images use virtualization that focuses on a specific application or software, rather than a full operating system.
