Celeb Glow
general | March 24, 2026

How to set up NVIDIA Container Toolkit on Ubuntu 20.04?

I am trying to set up NVIDIA Container Toolkit with this command following this tutorial to install Tensorflow 2.0 GPU on Docker container with Ubuntu 20.04 LTS:

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) && curl -s -L I sudo apt-key add - && curl -s -L /nyidia-docker.list I sudo tee /etc/apt/sources.list.d/nvidia-docker.list 

But it returns:

curl: option -: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
anto@anto-GP66-Leopard-11UH:~$ distribution=$(. /etc/os-release;ech

Even if this add - seems to be original I don't know what they missed to set up this toolkit.

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy