1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 16:52:20 +00:00

Make sure that DOCKER_RAMDISK can be set correctly because we changed the user-docker directory

This commit is contained in:
niusmallnan
2018-07-27 18:13:16 +08:00
committed by niusmallnan
parent f6ebb5002e
commit 9d3dd8796e

View File

@@ -70,8 +70,8 @@ func dockerInitAction(c *cli.Context) error {
} }
for _, mount := range strings.Split(string(mountInfo), "\n") { for _, mount := range strings.Split(string(mountInfo), "\n") {
if strings.Contains(mount, "/var/lib/docker /var/lib/docker") && strings.Contains(mount, "rootfs") { if strings.Contains(mount, "/var/lib/user-docker /var/lib/docker") && strings.Contains(mount, "rootfs") {
os.Setenv("DOCKER_RAMDISK", "1") os.Setenv("DOCKER_RAMDISK", "true")
} }
} }