Skip to main content
All CollectionsDocker containers
Building custom docker image
Building custom docker image
David avatar
Written by David
Updated over a week ago

Vocareum provides pre-built image for your projects. But you can create customer docker images by adding packages or services to images provided by Vocareum. Please contact Vocareum support if you need a different base image than what is provided as a starting point.

You must create at least one part to be able to create your own image. While the image created is available for use anywhere in the lab, you need access to "Configure Workspace" IDE to build the image. This workspace is always associated with a part that has been created. Go to the "Edit Assignments" page.

Select "Configure Workspace" for any part in the lab

Select "Build Image"

Build Image Options

You can either create a new image from scratch or edit a previously-built image.

Image Name

This name should be unique across the entire course. As mentioned before, even though the image is built in the "Configure workspace" for a specific part, it can be used in any part of the course.

Base Image

Vocareum provides built-in images as a starting point. You can modify these or contact Vocareum if you want to start with a new base image -

  • Vocareum Ubuntu 18.04 - user is again sent with sudo privilege.

  • Vocareum Theia - user is sent as root. Default interface is Eclipse Theia.

  • Vocareum R-Studio

  • Vocareum Jupyter (Python)

  • Vocareum Jupyter Deep Leaning (Python)

  • Vocareum Centos - user is sent as sudo. The default interface is a terminal.

Note that the default interface can be overridden by specifying your own "Access" method.

Dockerfile

This is the Dockerfie used for the build. See more details in the section here.

Access

You can specify a different name and port for how the container will be accessed by the user. For example, you can specify that an application called "apache" access the application via port 80.

Select Build

If the build succeeded, you should see the message "success". If there was an error in the message you can use the message panel to see the error from docker build process.

If the image was successfully built, it is now ready to be used when you configure the lab.

Did this answer your question?