Setup Docker with Nvidia GPU support

Setup time less than 5 minutes

Docker containers are currently supported on Data Center nodes only. On Consumer nodes, docker containers are supported only when rented on a monthly basis.

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers.

To run docker containerized applications inside your Q Blocks instance you'd need the docker engine to be installed correctly with Nvidia GPU support.

How to install Docker engine with GPU support?

Follow the steps below for successful installation:

  1. Go to your Q Blocks instance and open the bash terminal in it.

  2. Run the following command:

wget '' --no-check-certificate -O - | bash

It should take 2-3 minutes of installation time and should return the following output:


How to use Docker with GPUs?

Once you have installed docker engine with GPU support in your Q Blocks instance, running a GPU enabled docker container is fairly straightforward.

For example, if you have 4 GPUs in your instance and you plan to use the first 2 GPUs out of them for a docker Image then simply run a command like this in your instance:

docker run --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=0,1 -it DOCKER_IMAGE

Last updated