With this guide you will install the docker-compose plugin to run JupyterNotebook with CRAM.
Enable CPU virtualization in your BIOS to run virtual machines (VMs). If VMs are already enabled, there's nothing to do here.
Check if VMs are enabled with kvm-ok
sudo apt-get install cpu-checkerkvm-ok- Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get updatesudo apt-get install ca-certificates curl gnupg- Add Docker’s official GPG key:
sudo install -m 0755 -d /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgsudo chmod a+r /etc/apt/keyrings/docker.gpg- Use the following command to set up the repository:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullsudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginVerify that Docker Compose is installed correctly by checking the version.
docker compose versionPut the user in the docker group, so we don't need to add sudo to every docker command.
sudo groupadd docker
sudo usermod -aG docker $USERnewgrp dockerLogout and login to make this change permanent.
Do you have an NVIDIA GPU in your machine? Make sure you have the driver installed.
Details
In Software & Updates > Additional Drivers > choose the latest NVIDIA driver.
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -distribution=$(. /etc/os-release;echo $ID$VERSION_ID)curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.listsudo apt-get updatesudo apt-get install -y nvidia-docker2sudo pkill -SIGHUP dockerdsudo systemctl daemon-reloadsudo systemctl restart dockerRun
./start_eurobin.shThe script will enable x-forwarding for docker and perform docker compose up cram-eurobin, which will pull the image from DockerHub and launch it.
In your Terminal there should be a link. Paste it to your browser to open the Jupyter Notebook for CRAM.