cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
290
Views
0
Helpful
1
Replies

ZTP for 9300 switch with docker desktop

cxu21
Level 1
Level 1

I try to setup http service on my Windows 10 laptop with Docker Desktop.

I run the nginx docker on the docker desktop with port mapping 8080:80.

I can ping between my laptop and the 9300 switch.

We started the ZTP process, I had below error

pnp-discovery can be monitored without entering enable mode

Entering enable mode will stop pnp-discovery

Attempting bootfile http://10.198.104.41:8080/ztp.py

Couldn't open bootfile http://10.198.104.41:8080/ztp.py

stop Autoip process

Because in nginx docker, there is no directory called /var/www/html, I google it, the default directory in docker is /usr/share/nginx/html, so I saved the ztp.py file there.

I am not sure if it is correct location, could anyone advise it?

1 Reply 1

@cxu21 Nginx Docker image uses /usr/share/nginx/html as the document root, which is correct, i would try saving the ztp.py 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 docker exec -it <container_id> nginx -T and looking for error messages there, also set up a simple index.html file in the same directory to see if Nginx is serving files correctly.

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io