<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Docker build on GPU-Host returned a non-zero code: 100 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Docker-build-on-GPU-Host-returned-a-non-zero-code-100/m-p/281563#M209439</link>
    <description>&lt;P&gt;I couldn't figure the problem out myself. Can someone please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 13:38:07 GMT</pubDate>
    <dc:creator>Baris</dc:creator>
    <dc:date>2019-10-29T13:38:07Z</dc:date>
    <item>
      <title>Docker build on GPU-Host returned a non-zero code: 100</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Docker-build-on-GPU-Host-returned-a-non-zero-code-100/m-p/281162#M209208</link>
      <description>&lt;P&gt;I'm trying to create a custom CUDA-capable engine image with the&amp;nbsp;&lt;A title="CDSW GPU-Guide" href="https://docs.cloudera.com/documentation/data-science-workbench/1-6-x/topics/cdsw_gpu.html" target="_blank" rel="noopener"&gt;CDSW GPU-Guide&lt;/A&gt;&lt;BR /&gt;on our airgapped CDSW-Cluster.&amp;nbsp;&lt;SPAN&gt;We have a CDSW Cluster with 1 Master-Node and 2 Woker-Nodes (one of the Worker-Nodes is equipped with NVIDIA GPUs)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I used the following command on the GPU-Host, which is also given in CSDW GPU-Guide, to build the CUDA docker image:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="cdoc-line"&gt;docker build --network host -t &amp;lt;company-registry&amp;gt;/cdsw-cuda:8 . -f cuda.Dockerfile&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Beforehand we configured these firewall rules on our GPU-Host:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://developer.download.nvidia.com/*" target="_blank" rel="noopener"&gt;http://developer.download.nvidia.com/*&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://archive.ubuntu.com/ubuntu" target="_blank" rel="noopener"&gt;http://archive.ubuntu.com/ubuntu&lt;/A&gt;/*&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://security.ubuntu.com/ubuntu/*" target="_blank" rel="noopener"&gt;http://security.ubuntu.com/ubuntu/*&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Unfortunately I get these error messages: (Full output on stdout is attached)&lt;/P&gt;&lt;PRE&gt;Reading package lists...&lt;BR /&gt;W: The repository 'http://archive.cloudera.com/kudu/ubuntu/xenial/amd64/kudu xenial-kudu5 Release' does not have a Release file.&lt;BR /&gt;W: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial Release' does not have a Release file.&lt;BR /&gt;E: Failed to fetch http://archive.cloudera.com/kudu/ubuntu/xenial/amd64/kudu/dists/xenial-kudu5/contrib/source/Sources 403 Forbidden&lt;BR /&gt;E: Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.95.83 80]&lt;BR /&gt;E: Some index files failed to download. They have been ignored, or old ones used instead.&lt;BR /&gt;The command '/bin/sh -c apt-get update &amp;amp;&amp;amp; apt-get install -y --no-install-recommends cuda-cudart-$CUDA_PKG_VERSION &amp;amp;&amp;amp; ln -s cuda-10.0 /usr/local/cuda &amp;amp;&amp;amp; rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;At this point I have several questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it correct to build the docker image on the GPU-Host or should it be done on the CDSW-Master?&lt;/LI&gt;&lt;LI&gt;I couldn't find some of the paths on my entire CDSW-Cluster which are given in the cuda.Dockerfile, for instance:&lt;PRE&gt;&lt;SPAN&gt;/etc/apt/sources.list.d/&lt;BR /&gt;OR&lt;BR /&gt;/usr/local/nvidia/lib&lt;BR /&gt;OR&lt;BR /&gt;/var/lib/apt/lists/*&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Is this ok?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do airgapped installations need more friewall rules to be configured?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would be grateful for some kind of solution/feedback on that.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:35:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Docker-build-on-GPU-Host-returned-a-non-zero-code-100/m-p/281162#M209208</guid>
      <dc:creator>Baris</dc:creator>
      <dc:date>2026-04-21T11:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Docker build on GPU-Host returned a non-zero code: 100</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Docker-build-on-GPU-Host-returned-a-non-zero-code-100/m-p/281563#M209439</link>
      <description>&lt;P&gt;I couldn't figure the problem out myself. Can someone please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:38:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Docker-build-on-GPU-Host-returned-a-non-zero-code-100/m-p/281563#M209439</guid>
      <dc:creator>Baris</dc:creator>
      <dc:date>2019-10-29T13:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Docker build on GPU-Host returned a non-zero code: 100</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Docker-build-on-GPU-Host-returned-a-non-zero-code-100/m-p/282208#M209839</link>
      <description>&lt;P&gt;After we configured these firewall rules, I was able to build the custom image:&lt;/P&gt;&lt;PRE&gt;http://archive.cloudera.com/*    PORT: 80&lt;BR /&gt;http://ppa.launchpad.net/*       PORT: 80&lt;/PRE&gt;&lt;P&gt;Hint on docker company-registry:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was at the beginning a bit confused about the docker company-registry because we never set up a public docker registry. This is important because when you build and push the docker image, the commands require the company-registry. I could find it simply with the command&lt;/P&gt;&lt;PRE&gt;docker images&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You will get a list of images registered on your machine. I found out that the company registry in my case was&lt;/P&gt;&lt;PRE&gt;docker.repository.cloudera.com/cdsw/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;So what I did was just building the docker image with my company-registry. In my case there was no need to push the image to docker. (see&amp;nbsp;&lt;A title="CDSW GPU Guide" href="https://www.cloudera.com/documentation/data-science-workbench/latest/topics/cdsw_gpu.html" target="_blank" rel="noopener"&gt;CDSW GPU Guide&lt;/A&gt;)&lt;/P&gt;&lt;PRE&gt;docker build --network host -t docker.repository.cloudera.com/cdsw/cdsw-cuda:8 . -f cuda.Dockerfile&lt;/PRE&gt;&lt;P&gt;After that, the image was built successfully. The image can be listed with the command&lt;/P&gt;&lt;PRE&gt;docker images&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;One should see the newly created docker image in the repository.&lt;/P&gt;&lt;P&gt;For the last step the site admin. has to add this image to CDSW (see&amp;nbsp;&lt;A title="CDSW GPU Guide" href="https://www.cloudera.com/documentation/data-science-workbench/latest/topics/cdsw_gpu.html" target="_blank" rel="noopener"&gt;CDSW GPU Guide&lt;/A&gt;). The Repository:Tag in CDSW would be the same as shown above with the company-registry. In this example it would be&lt;/P&gt;&lt;PRE&gt;Repository:Tag docker.repository.cloudera.com/cdsw/cdsw-cuda:8&lt;/PRE&gt;&lt;P&gt;For airgapped installations you need these firewall rules to be able to build the NVIDIA image for CDSW: (all on Port 80)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://developer.download.nvidia.com/*" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://developer.download.nvidia.com/*&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://archive.ubuntu.com/ubuntu" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://archive.ubuntu.com/ubuntu&lt;/A&gt;/*&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://security.ubuntu.com/ubuntu/*" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://security.ubuntu.com/ubuntu/*&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://archive.cloudera.com/*" target="_blank"&gt;http://archive.cloudera.com/*&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://ppa.launchpad.net/*" target="_blank"&gt;http://ppa.launchpad.net/*&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:11:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Docker-build-on-GPU-Host-returned-a-non-zero-code-100/m-p/282208#M209839</guid>
      <dc:creator>Baris</dc:creator>
      <dc:date>2019-11-06T12:11:41Z</dc:date>
    </item>
  </channel>
</rss>

