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?
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.
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 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.
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 verified I can now pull docker images down from user level docker
docker pull debian
how ever the system level docker still doesn’t work
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,
# 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