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