From c60f8d64de0e8584a1147ee170d5f52c810ca6f9 Mon Sep 17 00:00:00 2001 From: niusmallnan Date: Fri, 25 Jan 2019 09:25:59 +0800 Subject: [PATCH] Add upgrading notes for ROS --- content/os/v1.x/en/upgrading/_index.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/content/os/v1.x/en/upgrading/_index.md b/content/os/v1.x/en/upgrading/_index.md index 05658c050f8..744f5712c81 100644 --- a/content/os/v1.x/en/upgrading/_index.md +++ b/content/os/v1.x/en/upgrading/_index.md @@ -135,3 +135,24 @@ rancher: url: https://releases.rancher.com/os/releases.yml image: rancher/os ``` + +### Upgrading Notes + +Upgrading to 1.4.0 and greater you must move or copy the files of user-docker's data-root otherwise your data will not be available: + +``` +#!/bin/bash + +old_docker_root="/proc/1/root/var/lib/docker" +new_docker_root="/proc/1/root/var/lib/user-docker" + +system-docker stop docker +cp -a $old_docker_root/* $new_docker_root +system-docker start docker +``` + +Upgrading to 1.4.0 and greater you must set `rancher.system_docker.bip` if you want to have another bridge IP of docker-sys: + +``` +$ sudo ros config set rancher.system_docker.bip 10.0.0.1/16 +```