Skip to content

building cuda docker image #1

@jglozma

Description

@jglozma

Hi,

I am trying to build cuda and other docker images using your docker file.

For cuda image, if I am using provided Dockerfile I am getting following error

_nvidia@jetson-0423318029501:~/AGXDocker/cuda$ ./build.sh
Sending build context to Docker daemon 1.939kB
Step 1/26 : ARG REPOSITORY
Step 2/26 : ARG TAG
Step 3/26 : FROM ${REPOSITORY}:${TAG}
---> 0926e73e5245
Step 4/26 : LABEL maintainer "Jason Tichy"
---> Running in 0c0d9371b2a3
Removing intermediate container 0c0d9371b2a3
---> 0b1f76b31793
Step 5/26 : ARG BUILD_VERSION
---> Running in 2cdfdfefd9cd
Removing intermediate container 2cdfdfefd9cd
---> 826fea6dc069
Step 6/26 : ARG USER
---> Running in 81a6abe4725c
Removing intermediate container 81a6abe4725c
---> 43d2d7a5c136
Step 7/26 : ARG UID
---> Running in cad420dab4d7
Removing intermediate container cad420dab4d7
---> 2069038f79ab
Step 8/26 : ENV container docker
---> Running in dc666ff45ddc
Removing intermediate container dc666ff45ddc
---> 656e91d0e0fe
Step 9/26 : ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES},display
---> Running in cd77cad38b2e
Removing intermediate container cd77cad38b2e
---> da5a6fc149a0
Step 10/26 : ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 LANGUAGE=C.UTF-8
---> Running in ff2e3dc8b1b7
Removing intermediate container ff2e3dc8b1b7
---> b96363ebf7b0
Step 11/26 : WORKDIR /tmp
---> Running in 53ae2807dfd4
Removing intermediate container 53ae2807dfd4
---> 77f79395a88f
Step 12/26 : RUN apt-get update && apt-get install -q -y dirmngr gnupg2 lsb-release && rm -rf /var/lib/apt/lists/

---> Running in bb28cd71611e
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease [242 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Couldn't create temporary file /tmp/apt.conf.giSmvd for passing config to apt-key
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]
Err:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
Couldn't create temporary file /tmp/apt.conf.vnV6Zj for passing config to apt-key
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB]
Err:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Couldn't create temporary file /tmp/apt.conf.1Ks2pi for passing config to apt-key
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
Err:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Couldn't create temporary file /tmp/apt.conf.kRoXXo for passing config to apt-key
Reading package lists...
W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic InRelease: Couldn't create temporary file /tmp/apt.conf.giSmvd for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease: Couldn't create temporary file /tmp/apt.conf.vnV6Zj for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.1Ks2pi for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease: Couldn't create temporary file /tmp/apt.conf.kRoXXo for passing config to apt-key
E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease' is not signed.
The command '/bin/sh -c apt-get update && apt-get install -q -y dirmngr gnupg2 lsb-release && rm -rf /var/lib/apt/lists/
' returned a non-zero code: 100**_

The only way I can get it running was to add

RUN chmod 0777 /tmp

However, I cannot build other images from this one.
What is the right way/setup to use your build and Dockerfiles?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions