HTTP Error 403 of Rancher server 2.0 preview

If you see the following error when run Rancher server 2.0 preview, it could be caused by your proxy. This is NOT the proxy settings in the docker daemon but the one inside the container itself.

Screen Shot 2017-10-06 at 4.42.19 PM.png

I noticed that Rancher server 2.0 tries to download some machine drivers when boots up, it returns the 403 error if the download fails. To fix it, you have to pass the proxy environment variables to the container. This is how I fixed it:

docker run -d –restart=unless-stopped -e https_proxy=’http://<proxy-ip>:<proxy-port> -p 80:8080 rancher/server:preview


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s