This fixes a few issues that are preventing shutdown and friends from behaving correctly: * The command name, which is being used to determine via what command it was being called (ie: shutdown, reboot, or halt) was not being parsed for absolute paths. This was preventing certain logic from being handled (example: enforcing a static time value of "now" for shutdown), but more problematically was the fact that it was being used as the container name being passed to runDocker, the function that launches the independent shutdown container. This was causing the shutdown container to fail as something like "/sbin/shutdown" is not a valid name for a container. The logic to parse out the base command being run is actually present in runDocker, but does not run if a name is supplied to the function. * Further, the command line was not being parsed in the shutdown container if the name supplied to runDocker was non-empty. Rather, the full command to run just became the name of the container. Hence, something like "/sbin/shutdown -h now" became just "shutdown", executing the default power off behaviour for all actions (including reboots). * Further to this, open-vm-tools expects "/sbin/shutdown -h now" to be a valid command to halt the system, which was not being recognized as the only recognized short-form halt flag in shutdown was its capital version (-H). This fixes these three issues by parsing out the base of the called command before sending it to reboot, using all of os.Argv as the command line to run regardless of if a name was set for the container or not, and finally adding the lowercase -h switch to the "shutdown" form of this command ("halt" is still uppercase only). Fixes rancher/os#2121. Fixes rancher/os#2074. |
||
---|---|---|
.github | ||
assets | ||
cmd | ||
compose | ||
config | ||
dfs | ||
docker | ||
docs | ||
hostname | ||
images | ||
init | ||
log | ||
netconf | ||
scripts | ||
selinux | ||
tests | ||
util | ||
vendor | ||
.dockerignore | ||
.drone.yml | ||
.gitignore | ||
Dockerfile.dapper | ||
LICENSE | ||
main.go | ||
Makefile | ||
os-config.tpl.yml | ||
README.md | ||
trash.conf |
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 very small. 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 the first process. 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.
Latest Release
v1.1.0 - Docker 17.03.2-ce - Linux 4.9.45
ISO
- https://releases.rancher.com/os/latest/rancheros.iso
- https://releases.rancher.com/os/v1.1.0/rancheros.iso
Additional Downloads
Latest Links
- https://releases.rancher.com/os/latest/initrd
- https://releases.rancher.com/os/latest/initrd-v1.1.0
- https://releases.rancher.com/os/latest/iso-checksums.txt
- https://releases.rancher.com/os/latest/rancheros-openstack.img
- https://releases.rancher.com/os/latest/rancheros.ipxe
- https://releases.rancher.com/os/latest/rancheros.iso
- https://releases.rancher.com/os/latest/rancheros-v1.1.0.tar.gz
- https://releases.rancher.com/os/latest/rootfs.tar.gz
- https://releases.rancher.com/os/latest/vmlinuz
- https://releases.rancher.com/os/latest/vmlinuz-4.9.45-rancher
v1.1.0 Links
- https://releases.rancher.com/os/v1.1.0/initrd
- https://releases.rancher.com/os/v1.1.0/initrd-v1.1.0
- https://releases.rancher.com/os/v1.1.0/iso-checksums.txt
- https://releases.rancher.com/os/v1.1.0/rancheros-openstack.img
- https://releases.rancher.com/os/v1.1.0/rancheros.ipxe
- https://releases.rancher.com/os/v1.1.0/rancheros.iso
- https://releases.rancher.com/os/v1.1.0/rancheros-v1.1.0.tar.gz
- https://releases.rancher.com/os/v1.1.0/rootfs.tar.gz
- https://releases.rancher.com/os/v1.1.0/vmlinuz
- https://releases.rancher.com/os/v1.1.0/vmlinuz-4.9.45-rancher
ARM Links
-
https://releases.rancher.com/os/latest/rancheros-raspberry-pi.zip
-
https://releases.rancher.com/os/latest/rancheros-raspberry-pi64.zip
-
https://releases.rancher.com/os/v1.1.0/rancheros-raspberry-pi.zip
-
https://releases.rancher.com/os/v1.1.0/rancheros-raspberry-pi64.zip
Note: you can use http
instead of https
in the above URLs, e.g. for iPXE.
Amazon
SSH keys are added to the rancher
user, so you must log in using the rancher user.
HVM
Region | Type | AMI |
---|---|---|
ap-south-1 | HVM | ami-7145011e |
eu-west-2 | HVM | ami-2dc0d049 |
eu-west-1 | HVM | ami-6b2cd712 |
ap-northeast-2 | HVM | ami-c2568eac |
ap-northeast-1 | HVM | ami-14d72f72 |
sa-east-1 | HVM | ami-88087be4 |
ca-central-1 | HVM | ami-0f3a846b |
ap-southeast-1 | HVM | ami-4866042b |
ap-southeast-2 | HVM | ami-74aeb417 |
eu-central-1 | HVM | ami-1c339973 |
us-east-1 | HVM | ami-22cec059 |
us-east-1 | HVM | ami-62000e19 |
us-east-2 | HVM | ami-efd4f78a |
us-west-1 | HVM | ami-964175f6 |
us-west-1 | HVM | ami-9c5b6ffc |
us-west-2 | HVM | ami-9515feed |
Additionally, images are available with support for Amazon EC2 Container Service (ECS) here.
Google Compute Engine
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.
Please follow the directions at our docs to launch in GCE.
Documentation for RancherOS
Please refer to our RancherOS Documentation 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 or #rancher IRC channel where most of our team hangs out at.
For security issues, please email security@rancher.com instead of posting a public issue in GitHub. You may (but are not required to) use the GPG key located on Keybase.
Please submit any RancherOS bugs, issues, and feature requests to rancher/os.
Please submit any Rancher bugs, issues, and feature requests to rancher/rancher.
#License Copyright (c) 2014-2017 Rancher Labs, Inc.
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
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.