top
(README.md)
# RancherOS

The smallest, easiest way to run Docker in production at scale.  Everything in RancherOS is a container managed by Docker.  This includes system services such as udev and rsyslog.  RancherOS includes only the bare minimum amount of software needed to run Docker.  This keeps the binary download of RancherOS to about 25MB.  Everything else can be pulled in dynamically through Docker.

## How this works

Everything in RancherOS is a Docker container.  We accomplish this by launching two instances of
Docker.  One is what we call the system Docker which runs as PID 1.  System Docker then launches
a container that runs the user Docker.  The user Docker is then the instance that gets primarily
used to create containers.  We created this separation because it seemed logical and also
it would really be bad if somebody did `docker rm -f $(docker ps -qa)` and deleted the entire OS.

![How it works](docs/rancheros.png "How it works")


## Latest Release

**v0.4.2 - Docker 1.9.1 - Linux 4.2**

### ISO

https://releases.rancher.com/os/latest/rancheros.iso  
https://releases.rancher.com/os/v0.4.2/rancheros.iso  

**Note**: you must login using `rancher` for username and password.

### Additional Downloads

* https://releases.rancher.com/os/latest/initrd
* https://releases.rancher.com/os/latest/iso-checksums.txt
* https://releases.rancher.com/os/latest/rancheros-v0.4.1.tar.gz
* https://releases.rancher.com/os/latest/rancheros.iso
* https://releases.rancher.com/os/latest/vmlinuz

* https://releases.rancher.com/os/v0.4.2/initrd
* https://releases.rancher.com/os/v0.4.2/iso-checksums.txt
* https://releases.rancher.com/os/v0.4.1/rancheros-v0.4.1.tar.gz
* https://releases.rancher.com/os/v0.4.2/rancheros.iso
* https://releases.rancher.com/os/v0.4.2/vmlinuz

**Note**: you can use `http` instead of `https` in the above URLs, e.g. for iPXE.  

### Amazon

We have 2 different [virtualization types of AMIs](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/virtualization_types.html). SSH keys are added to the **`rancher`** user, so you must log in using the **rancher** user.

**HVM**

Region | Type | AMI |
-------|------|------
ap-northeast-1 | HVM |  [ami-e4380c8a](https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchInstanceWizard:ami=ami-e4380c8a)
ap-southeast-1 | HVM |  [ami-4da5672e](https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#launchInstanceWizard:ami=ami-4da5672e)
ap-southeast-2 | HVM |  [ami-01a5fe62](https://console.aws.amazon.com/ec2/home?region=ap-southeast-2#launchInstanceWizard:ami=ami-01a5fe62)
eu-central-1 | HVM |  [ami-a75b44cb](https://console.aws.amazon.com/ec2/home?region=eu-central-1#launchInstanceWizard:ami=ami-a75b44cb)
eu-west-1 | HVM |  [ami-7989240a](https://console.aws.amazon.com/ec2/home?region=eu-west-1#launchInstanceWizard:ami=ami-7989240a)
sa-east-1 | HVM |  [ami-1f4bcc73](https://console.aws.amazon.com/ec2/home?region=sa-east-1#launchInstanceWizard:ami=ami-1f4bcc73)
us-east-1 | HVM |  [ami-53045239](https://console.aws.amazon.com/ec2/home?region=us-east-1#launchInstanceWizard:ami=ami-53045239)
us-west-1 | HVM |  [ami-6d2d470d](https://console.aws.amazon.com/ec2/home?region=us-west-1#launchInstanceWizard:ami=ami-6d2d470d)
us-west-2 | HVM |  [ami-8b0c12ea](https://console.aws.amazon.com/ec2/home?region=us-west-2#launchInstanceWizard:ami=ami-8b0c12ea)

**Paravirtual**

Region | Type | AMI
---|--- | ---
ap-northeast-1 | PV |  [ami-98380cf6](https://console.aws.amazon.com/ec2/home?region=ap-northeast-1#launchInstanceWizard:ami=ami-98380cf6)
ap-southeast-1 | PV |  [ami-94aa68f7](https://console.aws.amazon.com/ec2/home?region=ap-southeast-1#launchInstanceWizard:ami=ami-94aa68f7)
ap-southeast-2 | PV |  [ami-3ca5fe5f](https://console.aws.amazon.com/ec2/home?region=ap-southeast-2#launchInstanceWizard:ami=ami-3ca5fe5f)
eu-central-1 | PV |  [ami-5e5a4532](https://console.aws.amazon.com/ec2/home?region=eu-central-1#launchInstanceWizard:ami=ami-5e5a4532)
eu-west-1 | PV |  [ami-2e8e235d](https://console.aws.amazon.com/ec2/home?region=eu-west-1#launchInstanceWizard:ami=ami-2e8e235d)
sa-east-1 | PV |  [ami-6249ce0e](https://console.aws.amazon.com/ec2/home?region=sa-east-1#launchInstanceWizard:ami=ami-6249ce0e)
us-east-1 | PV |  [ami-850452ef](https://console.aws.amazon.com/ec2/home?region=us-east-1#launchInstanceWizard:ami=ami-850452ef)
us-west-1 | PV |  [ami-30d6bd50](https://console.aws.amazon.com/ec2/home?region=us-west-1#launchInstanceWizard:ami=ami-30d6bd50)
us-west-2 | PV |  [ami-550d1334](https://console.aws.amazon.com/ec2/home?region=us-west-2#launchInstanceWizard:ami=ami-550d1334)

### Google Compute Engine (Experimental)

We are providing a disk image that users can download and import for use in Google Compute Engine. The image can be obtained from the release artifacts for RancherOS v0.3.0 or later.

[Download Image](https://github.com/rancher/os/releases/download/v0.4.1/rancheros-v0.4.1.tar.gz)

Please follow the directions at our [docs to launch in GCE](http://docs.rancher.com/os/running-rancheros/cloud/gce/). 

#### Known issues/ToDos
 * Add GCE daemon support. (Manages users)

## Documentation for RancherOS

Please refer to our [RancherOS Documentation](http://docs.rancher.com/os/) website to read all about RancherOS. It has detailed information on how RancherOS works, getting-started and other details.

## Support, Discussion, and Community
If you need any help with RancherOS or Rancher, please join us at either our [Rancher forums](http://forums.rancher.com) or [#rancher IRC channel](http://webchat.freenode.net/?channels=rancher) where most of our team hangs out at.

Please submit any **RancherOS** bugs, issues, and feature requests to [rancher/os](//github.com/rancher/os/issues).

Please submit any **Rancher** bugs, issues, and feature requests to [rancher/rancher](//github.com/rancher/rancher/issues).

#License
Copyright (c) 2014-2016 [Rancher Labs, Inc.](http://rancher.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Imports 15 package(s) ΒΆ

  1. github.com/rancher/os/cmd/power
  2. github.com/rancher/os/cmd/respawn
  3. github.com/rancher/os/cmd/waitfornetwork
  4. github.com/rancher/docker-from-scratch
  5. github.com/rancher/os/cmd/systemdocker
  6. github.com/rancher/os/cmd/sysinit
  7. github.com/rancher/os/cmd/wait
  8. github.com/rancher/os/cmd/network
  9. github.com/rancher/os/config
  10. github.com/rancher/os/cmd/userdocker
  11. github.com/rancher/os/cmd/cloudinit
  12. github.com/rancher/os/cmd/control
  13. github.com/Sirupsen/logrus
  14. github.com/docker/docker/pkg/reexec
  15. github.com/rancher/os/init