mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
todo
This commit is contained in:
parent
515c7a3bbc
commit
ef131fced4
1
scripts/elastic-upgrade.sh
Normal file → Executable file
1
scripts/elastic-upgrade.sh
Normal file → Executable file
@ -149,6 +149,7 @@ upgrade_docker()
|
||||
# get container network name
|
||||
local network=$(docker inspect -f '{{.NetworkSettings.Networks}}' "$id" | sed 's/map\[\(.*\):0x[a-f0-9]*\]/\1/')
|
||||
# get container mapping to data folder
|
||||
# TODO FIXME if only one volume
|
||||
local mounts=$(docker inspect -f '{{.Mounts}}' "$id" | sed 's/} {/\n/g' | sed 's/^\[\?{\?bind[[:blank:]]*\([^[:blank:]]*\)[[:blank:]]*\([^[:blank:]]*\)[[:blank:]]*true rprivate}\?]\?$/-v \1:\2/g' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g')
|
||||
# stop elastic 1.7
|
||||
docker stop "$name"
|
||||
|
Loading…
x
Reference in New Issue
Block a user