-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compat API: network inspect do not show isolate option
We force the isolate option on new newtworks because that is the docker behavior. However when we inspect them they should not be displayed to the caller since they have no idea about it and docker-compose throws an error because of that. Fixes #15580 Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information
Showing
4 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- bash -*- | ||
|
||
mv docker-compose.yml.bak docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
# -*- bash -*- | ||
|
||
CR=$'\r' | ||
NL=$'\n' | ||
|
||
cp docker-compose.yml docker-compose.yml.bak | ||
sed -i -e 's/10001/10002/' docker-compose.yml | ||
docker-compose up -d | ||
output=$(docker-compose up -d 2>&1) | ||
|
||
# Horrible output check here but we really want to make sure that there are | ||
# no unexpected warning/errors and the normal messages are send on stderr as | ||
# well so we cannot check for an empty stderr. | ||
expected="Recreating uptwice_app_1 ... ${CR}${NL}Recreating uptwice_app_1 ... done$CR" | ||
if [ "$TEST_FLAVOR" = "compose_v2" ]; then | ||
expected="Container uptwice-app-1 Recreate${NL}Container uptwice-app-1 Recreated${NL}Container uptwice-app-1 Starting${NL}Container uptwice-app-1 Started" | ||
fi | ||
is "$output" "$expected" "no error output in compose up (#15580)" |