Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building cuda docker image #1

Open
jglozma opened this issue Apr 4, 2019 · 7 comments
Open

building cuda docker image #1

jglozma opened this issue Apr 4, 2019 · 7 comments

Comments

@jglozma
Copy link

jglozma commented Apr 4, 2019

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?

@JasonAtNvidia
Copy link
Owner

What JetPack and device are you running with? I just tried this on my Xavier running JetPack 4.2.0 and the build.sh script did not experience these errors.

@jglozma
Copy link
Author

jglozma commented Apr 4, 2019

I am on 3.3

@jglozma
Copy link
Author

jglozma commented Apr 4, 2019

I have noticed that all scripts and resulting container are using "developer" as the user. Any special requirements to it?

@JasonAtNvidia
Copy link
Owner

You can change the username in the build.sh scripts. It gets folded into the dockerfile as environment variable USER.

I'm actually shocked it is working for you with JetPack 3.3. I only built and tested it using JetPack 4.2.0. I think your headache might be that I expected bionic beaver ubuntu repos in the apt-get.

@jglozma
Copy link
Author

jglozma commented Apr 4, 2019

I am sorry. Actually,I installed 4.1.1. What is "bionic beaver ubuntu repos"? How do I get them?

@jglozma
Copy link
Author

jglozma commented Apr 4, 2019

I tried to change USER also, but it did not help

@jglozma
Copy link
Author

jglozma commented Apr 5, 2019

I have rebuilt Xavier with 4.2 and, so far, everything seems to be working. I will keep you posted, although next week I will be on vacation. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants