# Proxy Settings for RancherOS

**URL:** https://forums.suse.com/t/proxy-settings-for-rancheros/600
**Category:** RancherOS
**Created:** [September 30, 2015, 9:32pm UTC](https://forums.suse.com/t/proxy-settings-for-rancheros/600 "2015-09-30T21:32:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![grob4ever](https://avatars.discourse-cdn.com/v4/letter/g/97f17d/32.png) [@grob4ever](https://forums.suse.com/u/grob4ever)
#### Post date: [September 30, 2015, 9:32pm UTC](https://forums.suse.com/t/proxy-settings-for-rancheros/600/1 "2015-09-30T21:32:31Z")

</div>

I’m trying to get Rancher installed on RancherOS and I’m behind a corporate proxy. I was able to get installed on a different distro by adding my proxy info to /etc/sysconfig/docker, but I can’t find that file in RancherOS. What’s the best way to add it to the cloud-config? After I run the ros config is there a way to cat out the contents to insure I have the right info? Also do I have to restart the docker container after I make the change?

Thanks,

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [October 1, 2015, 6:38pm UTC](https://forums.suse.com/t/proxy-settings-for-rancheros/600/2 "2015-10-01T18:38:23Z")

</div>

FYI, this couldn’t be done in v0.3.3 because we didn’t have a persistent console. With v0.4.0 (coming out hopefully end of this week), which is a HUGE refactor of everything to make it much more usable (custom kernel, storage, perisistent console). You should be able to set up proxy settings in the user docker daemon. This would have to be done in the ubuntu or debian console and we’ll be including how to do it in the documentation.

---

<div class="post-metadata">

### Author: ![Shuliyey](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/shuliyey/32/495_2.png) [@Shuliyey](https://forums.suse.com/u/Shuliyey)
#### Post date: [November 12, 2015, 3:30am UTC](https://forums.suse.com/t/proxy-settings-for-rancheros/600/3 "2015-11-12T03:30:34Z")

</div>

Hi

Can this be done in the latest release of rancher.iso.

I’m trying to install racheros onto hard disk. I’ve configured all static ip, dns and etc.

But our network is behind corporate firewall. I’ve tried setting http\_proxy. But I still get network timeouts. when trying to pull the image.

The other problem I can think of is that our corporation actually captures the ssl certification and swap to its own proxyserver generated certificate.

Is there a way to install ssl certificate, so rancheros is able to pull the image?

e.g. to install a certificate in ubuntu  
we put the certificate to /usr/local/share/ca-certificates

sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt.

Then you do

sudo update-ca-certificates. And everything will be handled

Or is there a manual process to docker pull the latest rancher/os on another machine, and scp the image up to rancheros. so during the installation, **so “ros install” could install from a local copy of the rancheros image**.

---

<div class="post-metadata">

### Author: ![Shuliyey](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/shuliyey/32/495_2.png) [@Shuliyey](https://forums.suse.com/u/Shuliyey)
#### Post date: [November 12, 2015, 7:03am UTC](https://forums.suse.com/t/proxy-settings-for-rancheros/600/4 "2015-11-12T07:03:37Z")

</div>

Hi,

I managed to find a work around on this one.

I docker pulled rancher/os:v0.4.0 from another machine and exported the image as tar file.

then I scp this tar file up and imported into the system-docker of the booted rancher/os

```
scp <tar> rancher@<ip>:~/
cat <tar> | sudo system-docker import - rancher/os:v0.4.0
sudo system-docker restart docker

```

This way I can get a **local copy of rancher/os:v0.4.0**. So I can carry on with the rancher/os installation, so the next step is to install rancheros onto disk

```
sudo ros install -c cloud-config.yml -d /dev/sda

```

So now I no longer get the complaint on not being able to pull rancher/os:v0.4.0

I was able to get to the disk partitioning stage. Then I get this error about “-d” not found in PATH.

I presume the latest rancher/os:v0.4.0 (os-install) have bugs?  
I posted this problem on github issues page [https://github.com/rancher/os/issues/645](https://github.com/rancher/os/issues/645)

Or is it that I just can’t install rancher/os as VM on Hyper-V

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [November 13, 2015, 7:02pm UTC](https://forums.suse.com/t/proxy-settings-for-rancheros/600/5 "2015-11-13T19:02:03Z")

</div>

I know you’ve found a workaround, but here’s the documenation on how v0.4.0 supports proxy settings in user docker.

[http://docs.rancher.com/os/configuration/docker/#proxy-settings](http://docs.rancher.com/os/configuration/docker/#proxy-settings)

---

<div class="post-metadata">

### Author: ![Shuliyey](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/shuliyey/32/495_2.png) [@Shuliyey](https://forums.suse.com/u/Shuliyey)
#### Post date: [December 19, 2015, 2:41am UTC](https://forums.suse.com/t/proxy-settings-for-rancheros/600/6 "2015-12-19T02:41:06Z")

</div>

you are right denise.

I actually tried setting proxy for both the user level and system level

```bash
sudo ros config set rancher.system_docker.environment '[http_proxy=<proxy>, https_proxy=<proxy>]'
sudo ros config set rancher.docker.environment '[http_proxy=<proxy>, https_proxy=<proxy>'
# restart docker daemon for proxy to take effect
sudo system-docker restart docker

```

I also added our corporate’s firewall proxy certificate to rancher’s trusted certificate

```bash
sudo -i -u root
cat <crt> >> /etc/ssl/certs/ca-certificates.crt

```

I verified I can now pull docker images down from user level docker

```bash
docker pull debian

```

how ever the system level docker still doesn’t work

```bash
sudo system-docker pull debian

```

because ros install actually uses system-docker to pull the **rancher/os:v0.4.0** , hence it won’t work, if the system-docker still can’t pull the images

In the end i still used the work around,

```bash
# pull the docker image from user level docker
docker pull rancher/os:v0.4.0
# export the rancher/os:v0.4.0 image to a tar file
docker save rancher/os:v0.4.0 > rancheros.tar
# import the rancher/os:v0.4.0 image tar file to system-docker level
sudo system-docker load < rancheros.tar
# you can verify that the system-docker does contain the rancher/os:v0.4.0 image
sudo system-docker images
# now the ros install works
sudo ros install -c cloud-config.yml -d /dev/sda

```

I think I saw some thread, some people saying to set the system-docker level proxy, you can edit some file which sets the proxy at kernel level. But I haven’t tried that
