mirror of
https://github.com/rancher/os.git
synced 2025-08-02 07:24:28 +00:00
Move preload directories and call wait-for-docker
This commit is contained in:
parent
21fce533b8
commit
9e82d7d768
@ -25,6 +25,7 @@ if [ -d ${BASE} ]; then
|
||||
CAT="cat ${path}"
|
||||
if [[ ${file} =~ \.t?gz$ ]]; then CAT="${CAT} | gunzip"; fi
|
||||
if [[ ${file} =~ \.t?xz$ ]]; then CAT="${CAT} | unxz"; fi
|
||||
wait-for-docker
|
||||
CAT="${CAT} | docker load"
|
||||
echo loading from ${path}
|
||||
eval ${CAT} || :
|
||||
|
@ -230,7 +230,8 @@ rancher:
|
||||
privileged: true
|
||||
volumes:
|
||||
- /var/run/system-docker.sock:/var/run/docker.sock
|
||||
- /var/lib/system-docker/preload:/mnt/preload
|
||||
- /var/lib/rancher/preload/system-docker:/mnt/preload
|
||||
- /usr/bin/ros:/usr/sbin/wait-for-docker:ro
|
||||
volumes_from:
|
||||
- command-volumes
|
||||
- system-volumes
|
||||
@ -242,8 +243,9 @@ rancher:
|
||||
io.rancher.os.after: console
|
||||
privileged: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /var/lib/docker/preload:/mnt/preload
|
||||
- /var/run/:/var/run/
|
||||
- /var/lib/rancher/preload/docker:/mnt/preload
|
||||
- /usr/bin/ros:/usr/sbin/wait-for-docker:ro
|
||||
volumes_from:
|
||||
- command-volumes
|
||||
- system-volumes
|
||||
|
Loading…
Reference in New Issue
Block a user