- 09 Sep 2024
- 3 Minutes to read
- Print
Container Images
- Updated on 09 Sep 2024
- 3 Minutes to read
- Print
Skillable Studio supports using Docker Container Images in a lab environment. Container images can be imported from Docker Hub or other container registries.
Create a Container Image in Skillable Studio
From the Skillable Studio Admin page, click Create Container Image.
Populate the following fields:
Field | Description |
---|---|
Name | The name of the container image on Docker Hub. The container image name needs to match the name exactly how it appears in Docker Hub. The container image will be imported from Docker Hub, based on the name. |
Description | Add description of the container image or how the image will be used in a lab. |
Organization | Select the organization that will have permission to edit and use the container image. |
Registry | Select the container registry where your container is managed. For more information, see our Container Registry documentation. |
Size | Select the size of the container. These size profiles will set the amount of RAM, number of processors, and will govern the number of NICsallowed to be configured on the machine. |
Run as User | This optional value can be used to control the user account the container is run under. |
Entry Point | Allows you to set or override the container's default entry point. |
Command | Enter any commands that the container needs to function. If no commands are need, simply leave |
Environment Variables | Variables can be set for items such as configuration settings, encryption keys, and external resource addresses. For moreinformation about environment variables, read Define Environment Variables. |
Exposed Ports | The port(s) that will be exposed on the container. Enter on port value per line. Each exposed port will be dynamically mapped to an external port on the lab host server when the lab is deployed. The external addresses for exposed ports can be obtained in your labs via @lab tokens. |
Display | Select how the first exposed ports will be displayed. |
Terminal | Allows a terminal connection to the exposed port of the container. |
Web | Allows the lab client to connect to the exposed port and display the output of that port from the container. Web display requires the lab profile to have at least one network attached. Skillable uses a proxy to secure the web application, and adds an SSL certificate, to prevent unauthorized users from accessing your content. |
Start path | Allows signing in to the web application in the container, using a URL parameter. |
Use Relative Links | 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. |
Enabled | Check the box to enable the container image. |
Lab Profile Configuration
Container images are configured on lab profiles on the Basic information tab, by selecting Docker as the virtualization platform.
To configure a container image on a lab profile:
Navigate to the lab profile.
On the basic information tab, select Docker as the virtualization platform.
After Docker is selected, a new tab will appear for containers. Click the Container tab to continue.
Click Add Container Image.
Use the search to find the container image you want to use and click OK.
Configure the following options:
Field | Description |
---|---|
Display Name | The display name of the container image. This is how the container will be displayed in the lab to the student. |
Replacement Token Alias | The alias that can be used in @lab replacement tokens to target the container image. |
Visible to student | Allows the container image to be visible to the student. |
Default selection | Set the lab to focus on the container as the default selection when the lab launches. |