Compare the environment so we can detect a change in password
This commit is contained in:
1 parent
65f435f042
commit
436f8ef7c8
2 files changed
+11
-2
No files matched your search
@@ -937,10 +937,10 @@ detach() {
|
||||
######################################################################
|
||||
|
||||
args_match() {
|
||||
prev_args="$(docker inspect -f '{{.Args}}' $1)"
|
||||
prev_args="$(docker inspect -f '{{.Args}} {{.Config.Env}}' $1)"
|
||||
shift
|
||||
dummy_container=$(docker create "$@" 2>/dev/null) || return 1
|
||||
dummy_args="$(docker inspect -f '{{.Args}}' $dummy_container)"
|
||||
dummy_args="$(docker inspect -f '{{.Args}} {{.Config.Env}}' $dummy_container)"
|
||||
docker rm $dummy_container >/dev/null
|
||||
[ "$prev_args" = "$dummy_args" ]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user