1
0
mirror of https://github.com/rancher/os.git synced 2025-08-17 14:28:16 +00:00

more merges from rancher docs repo

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-03-17 13:25:10 +00:00
parent daed587841
commit c3a501d33d
15 changed files with 97 additions and 45 deletions

View File

@ -28,6 +28,9 @@ For the **User Data**, you'll need to pass in the [cloud-config]({{site.baseurl}
rancher: rancher:
environment: environment:
ECS_CLUSTER: your-ecs-cluster-name ECS_CLUSTER: your-ecs-cluster-name
# Note: You will need to add this variable, if using awslogs for ECS task.
ECS_AVAILABLE_LOGGING_DRIVERS: |-
["json-file","awslogs"]
# If you have selected a RancherOS AMI that does not have ECS enabled by default, # If you have selected a RancherOS AMI that does not have ECS enabled by default,
# you'll need to enable the system service for the ECS agent. # you'll need to enable the system service for the ECS agent.
services_include: services_include:

View File

@ -5,6 +5,7 @@ layout: os-default
--- ---
## Configuring Docker or System Docker ## Configuring Docker or System Docker
---
In RancherOS, you can configure System Docker and Docker daemons by using [cloud-config]({{site.baseurl}}/os/configuration/#cloud-config). In RancherOS, you can configure System Docker and Docker daemons by using [cloud-config]({{site.baseurl}}/os/configuration/#cloud-config).

View File

@ -5,6 +5,7 @@ layout: os-default
--- ---
## Installing Kernel Modules that require Kernel Headers ## Installing Kernel Modules that require Kernel Headers
---
To compile any kernel modules, you will need to download the kernel headers. The kernel headers are available in the form of a system service. Since the kernel headers are a system service, they need to be enabled using the `ros service` command. To compile any kernel modules, you will need to download the kernel headers. The kernel headers are available in the form of a system service. Since the kernel headers are a system service, they need to be enabled using the `ros service` command.

View File

@ -76,3 +76,25 @@ If you don't want to automatically switch Docker engines, you can also set which
``` ```
$ sudo ros engine enable docker-1.10.3 $ sudo ros engine enable docker-1.10.3
``` ```
## Using a Custom Version of Docker
If you're using a version of Docker that isn't available by default or a custom build of Docker then you can create a custom Docker image and service file to distribute it.
Docker engine images are built by adding the binaries to a folder named `engine` and then adding this folder to a `FROM scratch` image. For example, the following Dockerfile will build a Docker engine image.
```
FROM scratch
COPY engine /engine
```
Once the image is built a [system service]({{site.baseurl}}/os/system-services/adding-system-services/) configuration file must be created. An [example file](https://github.com/rancher/os-services/blob/master/d/docker-1.12.3.yml) can be found in the rancher/os-services repo. Change the `image` field to point to the Docker engine image you've built.
All of the previously mentioned methods of switching Docker engines are now available. For example, if your service file is located at `https://myservicefile` then the following cloud-config file could be used to use your custom Docker engine.
```yaml
#cloud-config
rancher:
docker:
engine: https://myservicefile
```

View File

@ -6,6 +6,7 @@ redirect_from:
--- ---
## Interfaces ## Interfaces
---
Using `ros config`, you can configure specific interfaces. Wildcard globbing is supported so `eth*` will match `eth1` and `eth2`. The available options you can configure are `address`, `gateway`, `mtu`, and `dhcp`. Using `ros config`, you can configure specific interfaces. Wildcard globbing is supported so `eth*` will match `eth1` and `eth2`. The available options you can configure are `address`, `gateway`, `mtu`, and `dhcp`.
@ -94,3 +95,19 @@ rancher:
eth0: eth0:
vlans: 100,200:foobar vlans: 100,200:foobar
``` ```
### Bridging
In this example, you can create a bridge interface.
```
#cloud-config
rancher:
network:
interfaces:
br0:
bridge: true
dhcp: true
eth0:
bridge: br0
```

View File

@ -12,6 +12,8 @@ When installing, there is no ability to pass in a [cloud-config]({{site.baseurl}
Currently, only Raspberry Pi 2 and 3 are tested and known to work. Currently, only Raspberry Pi 2 and 3 are tested and known to work.
> **Note:** It is not necessary to run `ros install` after installing RancherOS to an SD card.
### Using the entire SD Card ### Using the entire SD Card
RancherOS does not currently expand the root partition to fill the remainder of the SD card automatically. Instead, the following workaround can be used to store Docker containers on a larger partition that fills the remainder. RancherOS does not currently expand the root partition to fill the remainder of the SD card automatically. Instead, the following workaround can be used to store Docker containers on a larger partition that fills the remainder.

View File

@ -4,6 +4,7 @@ layout: os-default
--- ---
## Persistent State Partition ## Persistent State Partition
---
RancherOS will store its state in a single partition specified by the `dev` field. The field can be a device such as `/dev/sda1` or a logical name such `LABEL=state` or `UUID=123124`. The default value is `LABEL=RANCHER_STATE`. The file system type of that partition can be set to `auto` or a specific file system type such as `ext4`. RancherOS will store its state in a single partition specified by the `dev` field. The field can be a device such as `/dev/sda1` or a logical name such `LABEL=state` or `UUID=123124`. The default value is `LABEL=RANCHER_STATE`. The file system type of that partition can be set to `auto` or a specific file system type such as `ext4`.

View File

@ -6,6 +6,7 @@ redirect_from:
--- ---
## Using ZFS ## Using ZFS
---
#### Installing the ZFS service #### Installing the ZFS service

View File

@ -7,6 +7,7 @@ redirect_from:
--- ---
## System Services ## System Services
---
A system service is a container that can be run in either System Docker or Docker. Rancher provides services that are already available in RancherOS by adding them to the [os-services repo](https://github.com/rancher/os-services). Anything in the `index.yml` file from the repository for the tagged release will be an available system service when using the `ros service list` command. A system service is a container that can be run in either System Docker or Docker. Rancher provides services that are already available in RancherOS by adding them to the [os-services repo](https://github.com/rancher/os-services). Anything in the `index.yml` file from the repository for the tagged release will be an available system service when using the `ros service list` command.

View File

@ -13,6 +13,9 @@ Since RancherOS is a kernel and initrd, the upgrade process is downloading a new
To see all of our releases, please visit our [releases page](https://github.com/rancher/os/releases) in GitHub. To see all of our releases, please visit our [releases page](https://github.com/rancher/os/releases) in GitHub.
> **Note:** If you are using [`docker-machine`]({{site.baseurl}}/os/running-rancheros/workstation/docker-machine/) then you will not be able to upgrade your RancherOS version. You need to delete and re-create the machine.
### Version Control ### Version Control
First, let's check what version you have running on your system. First, let's check what version you have running on your system.