<?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>topic Re: Custom docker image fails to initalize in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38413#M26632</link>
    <description>&lt;P&gt;Looks like running "apt install iptables" might work, will update. But it seems weird the base image provided by Databricks doesn't contain all the executables needed by it to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 19:59:53 GMT</pubDate>
    <dc:creator>matanper</dc:creator>
    <dc:date>2023-07-25T19:59:53Z</dc:date>
    <item>
      <title>Custom docker image fails to initalize</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38389#M26617</link>
      <description>&lt;P&gt;I'm trying to use a custom docker image for my job. This is my docker file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FROM databricksruntime/standard:12.2-LTS

COPY . .
RUN /databricks/python3/bin/pip install -U pip
RUN /databricks/python3/bin/pip install -r requirements.txt

USER root&lt;/LI-CODE&gt;&lt;P&gt;My job is using a pool, and first I've tried to directly go to the job -&amp;gt; compute -&amp;gt; advanced -&amp;gt; docker, and put my image. But then it fails with the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Unexpected user error while preparing the cluster for the job. Cause: INVALID_PARAMETER_VALUE: The target instance pool InstancePoolId(xxxxx) does not have docker images configured, thus not supporting cluster creation with docker image. Please update your cluster attribute or create a separate instance pool for docker image clusters.&lt;/LI-CODE&gt;&lt;P&gt;So instead I tried to create a new all-purpose cluster with my custom image defined, and when the cluster is trying to initialize it fails with the error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;23/07/25 13:40:48 ERROR DriverDaemon$: stderr:
/databricks/spark/scripts/setup_container_iptables_rules.sh: line 32: iptables: command not found
23/07/25 13:40:48 ERROR DriverDaemon$: XXX Fatal uncaught exception. Terminating driver.
org.apache.spark.api.python.PythonSecurityException: Failed to run: 'enable iptables restrictions for Python'&lt;/LI-CODE&gt;&lt;P&gt;Any advice?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 14:07:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38389#M26617</guid>
      <dc:creator>matanper</dc:creator>
      <dc:date>2023-07-25T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom docker image fails to initalize</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38406#M26628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please check if the requirements are fulfilled,&amp;nbsp;&lt;A href="https://docs.databricks.com/clusters/custom-containers.html#requirements" target="_blank"&gt;https://docs.databricks.com/clusters/custom-containers.html#requirements&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, could you please try through the API if it is getting deployed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, as per the error it looks like the iptables has been enabled in the image for python. (&lt;A href="https://stackoverflow.com/questions/5891779/is-there-a-python-interface-to-iptables" target="_blank"&gt;https://stackoverflow.com/questions/5891779/is-there-a-python-interface-to-iptables&lt;/A&gt;). Could you please confirm it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tag &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078" target="_blank"&gt;@Debayan&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;with your next comment which will notify me. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 19:15:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38406#M26628</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-07-25T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom docker image fails to initalize</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38410#M26630</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have&amp;nbsp;&lt;SPAN&gt;Databricks Container Services enabled&lt;BR /&gt;2. "Your machine must be running a recent Docker daemon" - I'm not sure I followed this one. Databricks is the one managing my machines on AWS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;could you please try through the API if it is getting deployed?" - Do you refer to try the cluster initialization using the API? can you give me a reference for this one?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"it looks like the iptables has been enabled in the image for python" - Trying both standard and python images and they seem to be missing iptables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;docker run databricksruntime/standard:12.2-LTS bash -c 'iptables'
&amp;gt; bash: iptables: command not found

docker run databricksruntime/python:12.2-LTS bash -c 'iptables'
&amp;gt; bash: iptables: command not found&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 19:52:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38410#M26630</guid>
      <dc:creator>matanper</dc:creator>
      <dc:date>2023-07-25T19:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom docker image fails to initalize</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38413#M26632</link>
      <description>&lt;P&gt;Looks like running "apt install iptables" might work, will update. But it seems weird the base image provided by Databricks doesn't contain all the executables needed by it to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 19:59:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38413#M26632</guid>
      <dc:creator>matanper</dc:creator>
      <dc:date>2023-07-25T19:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom docker image fails to initalize</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38511#M26656</link>
      <description>&lt;P&gt;Hi, I think, disabling iptables will be better in this case, could you please try the below command and confirm?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$ sudo iptables -S&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 15:30:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38511#M26656</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-07-26T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom docker image fails to initalize</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38516#M26658</link>
      <description>&lt;P&gt;after installing `iptables`? before it's still command not found&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 16:02:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/38516#M26658</guid>
      <dc:creator>matanper</dc:creator>
      <dc:date>2023-07-26T16:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom docker image fails to initalize</title>
      <link>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/113698#M44615</link>
      <description>&lt;P&gt;Did y'all ever figure this out? I'm running in a &lt;A href="https://community.databricks.com/t5/data-engineering/attempt-to-use-a-custom-container-with-an-instance-pool-fails/m-p/113671" target="_blank"&gt;similar issue.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 16:30:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/custom-docker-image-fails-to-initalize/m-p/113698#M44615</guid>
      <dc:creator>mrstevegross</dc:creator>
      <dc:date>2025-03-26T16:30:20Z</dc:date>
    </item>
  </channel>
</rss>

