# RancherOS behind corporate proxy

**URL:** <https://forums.suse.com/t/rancheros-behind-corporate-proxy/1263>\
**Category:** RancherOS\
**Created:** [December 16, 2015, 7:51am UTC](https://forums.suse.com/t/rancheros-behind-corporate-proxy/1263 "2015-12-16T07:51:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brutus333](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@brutus333](https://forums.suse.com/u/brutus333)\
**Post date:** [December 16, 2015, 7:51am UTC](https://forums.suse.com/t/rancheros-behind-corporate-proxy/1263/1 "2015-12-16T07:51:04Z")

</div>

I am trying to install RancherOS on disk behind a corporate proxy. I managed to boot with iPXE and to run ros install command successfully (by setting HTTP proxy env variables). However, RancherOS is hanging at the following screen when starting from disk:

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/1X/62af40c3be7bdd4cf8c6fc7a98715ebe8717b943.png)  
I’ve tried various changes with no luck; in the cloud config file passed to ros install I am only setting the ssh keys, network configuration information and HTTP proxy env variables.

Please advice,

Virgil  
PS: the docker daemon segfault does not occur all the time, still the boot sequence is hanging all the time

---

<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, 3:00am UTC](https://forums.suse.com/t/rancheros-behind-corporate-proxy/1263/2 "2015-12-19T03:00:12Z")

</div>

Hi

Just wondering how did you set the proxy to get **“ros install”** working behind corporate firewall, I tried the following

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

```

I can pull images on user level, so the below **works**

```bash
# works
sudo docker pull debian

```

but still can’t get to pull image at system level, so the below **won’t work**

```bash
# doesn't work
sudo system-docker pull debian

```

because **ros install** uses **system-docker** to pull the **rancher/os** image, so the **system-docker pull** have to work in order for **ros install** to work

Is there some specific place, where the http\_proxy and https\_proxy should be set for system-level docker?

---

<div class="post-metadata">

**Author:** ![brutus333](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@brutus333](https://forums.suse.com/u/brutus333)\
**Post date:** [December 28, 2015, 7:47am UTC](https://forums.suse.com/t/rancheros-behind-corporate-proxy/1263/3 "2015-12-28T07:47:21Z")

</div>

Hello!  
I used the following settings in the cloud-config file:

rancher:  
docker:  
environment:  
- HTTPS\_PROXY=http://proxy:port  
- HTTP\_PROXY=http://proxy:port  
- NO\_PROXY=localhost,127.0.0.1

It needs these settings in the environment **before** starting system-docker (which, by the way, can’t be restarted).  
But I did not succeed in finalizing the installation anyway…  
It seems that even when booting from the ISO and running the ros install that way the system will still hang at first boot.

---

<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:** [January 19, 2016, 12:25am UTC](https://forums.suse.com/t/rancheros-behind-corporate-proxy/1263/4 "2016-01-19T00:25:32Z")

</div>

hmm interesting,  
so did you persist the state of the environment and rebooted, in order for the proxy settings for the system-docker to take effect?

e.g.

- modify the cloud-config to have the proxy settings
- persist state and reboot from iso

```bash
$ sudo mkfs.ext4 -L RANCHER_STATE /dev/sda
# Reboot afterwards in order for the changes to start being saved.
$ sudo reboot

```

- the system-docker now will have the proxy settings taken into effect (since the system is rebooted and cloud-config file have the proxy settings specified). So **system-docker pull** would work, hence **ros install** would work.

btw. I did manage to get rancheros installed onto hard disk behind corporate firewall, but the method is more like a work around. Here’s the link: [Proxy Settings for RancherOS](http://forums.suse.com/t/proxy-settings-for-rancheros/600/6?u=shuliyey)
