tests: skip test when in remote vscode container and also ensure the docker daemon config is valid

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-10-24 20:21:03 -04:00
1 parent 760be655e9
commit a637ffc848
1 file changed
+8
+8
View File
@@ -396,6 +396,14 @@ teardown() {
}
@test "(logs) logs:set max-size with alternate log-driver daemon " {
if [[ "$REMOTE_CONTAINERS" == "true" ]]; then
skip "skipping due non-existent docker service in remote dev container"
fi
if [[ ! -f /etc/docker/daemon.json ]]; then
echo "{}" >/etc/docker/daemon.json
fi
driver="$(jq -r '."log-driver"' /etc/docker/daemon.json)"
local TMP_FILE=$(mktemp "/tmp/dokku.me.XXXX")