blob: c95189ee38749ba527cb7a6139f5f9761de56891 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
set -e
# Optional: Import test library
source dev-container-features-test-lib
# Feature specific tests
check "version" docker --version
check "docker-init-exists" bash -c "ls /usr/local/share/docker-init.sh"
check "log-exists" bash -c "ls /tmp/dockerd.log"
echo "(*) Printing dockerd log..."
echo ""
cat /tmp/dockerd.log
echo ""
echo ""
check "log-for-completion" bash -c "cat /tmp/dockerd.log | grep 'Daemon has completed initialization'"
check "log-contents" bash -c "cat /tmp/dockerd.log | grep 'API listen on /var/run/docker.sock'"
check "docker-ps" bash -c "docker ps"
check "run hello-world" bash -c "docker run hello-world"
check "validate hello-world image exists" bash -c "docker images | grep hello-world"
# Report result
reportResults
|