mirror of https://github.com/docker/docs.git
19 lines
512 B
Bash
19 lines
512 B
Bash
#!/usr/bin/env bats
|
|
|
|
load ${BASE_TEST_DIR}/helpers.bash
|
|
|
|
@test "$DRIVER: create with arbitrary engine option" {
|
|
run machine create -d $DRIVER \
|
|
--engine-opt log-driver=none \
|
|
$NAME
|
|
echo ${output}
|
|
[ $status -eq 0 ]
|
|
}
|
|
|
|
@test "$DRIVER: check created engine option (log driver)" {
|
|
docker $(machine config $NAME) run --name nolog busybox echo this should not be logged
|
|
run docker $(machine config $NAME) inspect -f '{{.HostConfig.LogConfig.Type}}' nolog
|
|
echo ${output}
|
|
[ ${output} == "none" ]
|
|
}
|