<?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: ZTP for 9300 switch with docker desktop in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/ztp-for-9300-switch-with-docker-desktop/m-p/5161689#M2732</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1297635"&gt;@cxu21&lt;/a&gt;&amp;nbsp;Nginx Docker image uses&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/usr/share/nginx/html&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as the document root, which is correct, i would try saving the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;ztp.py&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file in that directory, if you have not done so. For some troubleshooting check the Nginx error logs to see if there are any errors related to serving the file, run&amp;nbsp;&lt;CODE&gt;docker exec -it &amp;lt;container_id&amp;gt; nginx -T&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and looking for error messages there, also set&amp;nbsp;up a simple&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;index.html&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file in the same directory to see if Nginx is serving files correctly.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 08:33:40 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2024-08-16T08:33:40Z</dc:date>
    <item>
      <title>ZTP for 9300 switch with docker desktop</title>
      <link>https://community.cisco.com/t5/controllers/ztp-for-9300-switch-with-docker-desktop/m-p/5161647#M2731</link>
      <description>&lt;P&gt;I try to setup http service on my Windows 10 laptop with Docker Desktop.&lt;/P&gt;
&lt;P&gt;I run the nginx docker on the docker desktop with port mapping 8080:80.&lt;/P&gt;
&lt;P&gt;I can ping between my laptop and the 9300 switch.&lt;/P&gt;
&lt;P&gt;We started the ZTP process, I had below error&lt;/P&gt;
&lt;P&gt;pnp-discovery can be monitored without entering enable mode&lt;/P&gt;
&lt;P&gt;Entering enable mode will stop pnp-discovery&lt;/P&gt;
&lt;P&gt;Attempting bootfile&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://10.64.88.29/Co-Worker.py" target="_blank" rel="noopener nofollow noreferrer"&gt;http://10.198.104.41:8080/ztp.py&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Couldn't open bootfile&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://10.64.88.29/Co-Worker.py" target="_blank" rel="noopener nofollow noreferrer"&gt;http://10.198.104.41:8080/ztp.py&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;stop Autoip process&lt;/P&gt;
&lt;P&gt;Because in nginx docker, there is no directory called /var/www/html, I google it, the default directory in docker is&amp;nbsp;&lt;SPAN&gt;/usr/share/nginx/html, so I saved the ztp.py file there.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not sure if it is correct location, could anyone advise it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 05:48:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ztp-for-9300-switch-with-docker-desktop/m-p/5161647#M2731</guid>
      <dc:creator>cxu21</dc:creator>
      <dc:date>2024-08-16T05:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: ZTP for 9300 switch with docker desktop</title>
      <link>https://community.cisco.com/t5/controllers/ztp-for-9300-switch-with-docker-desktop/m-p/5161689#M2732</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1297635"&gt;@cxu21&lt;/a&gt;&amp;nbsp;Nginx Docker image uses&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;/usr/share/nginx/html&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as the document root, which is correct, i would try saving the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;ztp.py&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file in that directory, if you have not done so. For some troubleshooting check the Nginx error logs to see if there are any errors related to serving the file, run&amp;nbsp;&lt;CODE&gt;docker exec -it &amp;lt;container_id&amp;gt; nginx -T&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and looking for error messages there, also set&amp;nbsp;up a simple&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;index.html&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file in the same directory to see if Nginx is serving files correctly.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 08:33:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ztp-for-9300-switch-with-docker-desktop/m-p/5161689#M2732</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-08-16T08:33:40Z</dc:date>
    </item>
  </channel>
</rss>

