Skip to content

Commit

Permalink
docker: update Dockerfiles to use focal images (#388)
Browse files Browse the repository at this point in the history
* Update Dockerfiles to use Ubuntu Focal
* runtime=nvidia is deprecated, gpus=all has replaced it in newer versions of docker

Signed-off-by: Russ Webber <[email protected]>
  • Loading branch information
russkel authored Oct 6, 2020
1 parent 9fb0577 commit 94560a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:bionic
FROM ubuntu:focal

RUN apt-get update \
&& apt-get install -y \
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.ignition
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# This docker file is used by build.bash and run.bash to build and run
# an Ignition distribution based on binaries. See the README.md file.

# Ubuntu 18.04 with nvidia-docker2 beta opengl support
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu18.04
# Ubuntu 20.04 with nvidia opengl support
FROM nvidia/opengl:1.2-glvnd-devel-ubuntu20.04

# Name of the Ignition distribution
ARG ign_distribution
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Docker has two available versions: Community Edition (CE) and Enterprise Edition
1. Verify the installation:
docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi
docker run --gpus all --rm nvidia/cuda nvidia-smi
This command should print your GPU information, for example:
Expand Down
2 changes: 1 addition & 1 deletion docker/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ docker run -it \
-v "/etc/localtime:/etc/localtime:ro" \
-v "/dev/input:/dev/input" \
--rm \
--runtime=nvidia \
--gpus all \
--security-opt seccomp=unconfined \
$IMG \
${@:2}

0 comments on commit 94560a2

Please sign in to comment.