Docker

Docker

Docker is a tool that essentially lets you package a (development) environment with all its settings and dependencies, and move it to another machine, such that whatever you create and develop works the same on every machine you want to run it on. Docker also offers a large number of pre-made images for all kinds of purposes via its own repository, Docker Hub.

Docker can be used both on Windows and Linux machines. Docker images are OS-specific, because they use the system kernel to function, so it is not possible to run a Docker image built on Windows on a Linux machine. However, Windows 10 has a built-in Linux kernel, allowing it to run both Windows and Linux Docker images.

For more information on the use of Docker, have a look at one of the numerous tutorials online, for example:

Docker in DRE

Docker Toolbox v.19.03.1 (Windows) is available via the Software Installer on RUMC VM images. For Linux machines, you may follow this tutorial.

Usually, a Docker image is packaged into a container and pushed to Docker Hub, from where it can be pulled for use on another machine. This is not possible in the DRE, due to restricted internet access (opening ports is not an option because of its variable IP address). Instead, you need to save your docker image to a .tar file, then upload it to your workspace, and inside a VM with Docker installed load the .tar file:

Save .tar file:
  1. $ docker save --output FILENAME.tar IMAGENAME
Load .tar file:
  1. $ docker load --input FILENAME.tar

    • Related Articles

    • Docker stopped working on Windows VMs - summary of tests and alternative

      First version: 2023-10-30 Last version: - Last change: - This is a community effort. The article was created by the anDREa Support Team in their spare time. If you have found a more efficient way to approach this, please contact us and we will update ...
    • Installing docker on Ubuntu 22

      First version: 2023-11-24 Last version: 2024-01-12 Last change: Small corrections to reflect that domain allowlisting is now a self-service feature. This is a community effort. The article was created through collaboration of the anDREa Support Team ...
    • NVIDIA-docker

      This article describes how to install NVIDIA-docker on a Linux VM in two parts. kudos to Bob van Dijk - Amsterdam UMC Download and ingress the attachment for easy copy/paste. Part 1: install and start the latest NVIDIA drivers for your GPU card Open ...
    • Domains to be whitelisted/allowlisted for known applications

      First version: 2022-11-01 Last updated: 2024-06-07 Last change: Added link to information on extra settings necessary for Stata. Introduction This is a community effort, if you experience issues, see mistakes/updates, or have other applications that ...
    • Host ALL your AI locally

      Build an AI server in your myDRE Workspace and run all of AI models locally with a beautiful chat interface! It's customizable and super fast, much faster than anything else I've used. And again, it's local, it's private. You control it! Isn't that ...