diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-10-30 09:28:33 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-30 09:28:33 +0100 |
commit | a91572b7f39038d960fc567859f2b2c7442ca5a7 (patch) | |
tree | c1cb61876f264d9f373ea7716fc0a81757b214d8 /tests/objectstore | |
parent | 0c1a8c953aba8968301f0871a607d5abcf7b3003 (diff) | |
download | nextcloud-server-a91572b7f39038d960fc567859f2b2c7442ca5a7.tar.gz nextcloud-server-a91572b7f39038d960fc567859f2b2c7442ca5a7.zip |
Use proper statement to retrieve the IP of an docker instance
Diffstat (limited to 'tests/objectstore')
-rwxr-xr-x | tests/objectstore/start-swift-ceph.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/objectstore/start-swift-ceph.sh b/tests/objectstore/start-swift-ceph.sh index 91a813f8bb3..8863a1f9f16 100755 --- a/tests/objectstore/start-swift-ceph.sh +++ b/tests/objectstore/start-swift-ceph.sh @@ -48,7 +48,7 @@ container=`docker run -d \ --privileged \ --entrypoint /entrypoint.sh ${docker_image}` -host=`docker inspect $container | grep IPAddress | cut -d '"' -f 4` +host=$(docker inspect --format="{{.NetworkSettings.IPAddress}}" "$container") echo "${docker_image} container: $container" |