26 lines
499 B
Bash
Executable file
26 lines
499 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
volume() {
|
|
if [ "$1" = 'ls' ]; then
|
|
echo "DRIVER VOLUME NAME"
|
|
echo "local 00c674e3f3c1587d88c2ebf2f91da5843b9dddb3e8df272898bdfd4e596aef79"
|
|
echo "local $DOCKER_MOCK_VOLUME"
|
|
return 0
|
|
elif [ "$1" = 'inspect' ]; then
|
|
if [ "$2" = "$DOCKER_MOCK_VOLUME" ]; then
|
|
return 0
|
|
else
|
|
return 1
|
|
fi
|
|
else
|
|
docker volume "$@"
|
|
fi
|
|
}
|
|
|
|
|
|
if [ "$1" = "volume" ]; then
|
|
"$@"
|
|
else
|
|
docker "$@"
|
|
fi
|
|
|