summaryrefslogtreecommitdiffhomepage
path: root/test/shim/validate.sh
blob: b56b79d2a7da86b85a026bb9131393794c6df927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# A sample script to validate a running nginx container.

set -ex

{ # Step 1: Inspect the pod
sudo crictl inspectp ${SANDBOX_ID}
}

{ # Step 2: Inspect the container
sudo crictl inspect ${CONTAINER_ID}
}

{ # Step 3: Check dmesg
sudo crictl exec ${CONTAINER_ID} dmesg | grep -i gvisor
}