This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -v /:/host --net=host --pid=host --ipc=host --privileged -it alpine chroot /host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>loopback.alias</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/sbin/ifconfig</string> | |
<string>lo0</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
volumes: | |
local-data: | |
mirror-data: | |
services: | |
local: | |
container_name: registry-local | |
image: registry:2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost cri]$ make test-cri | |
🇩 binaries | |
🇩 test-cri | |
/go/bin/critest | |
'/go/src/github.com/containerd/cri/hack/../_output/containerd' -> '/usr/local/bin/containerd-test' | |
changing security context of '/usr/local/bin/containerd-test' | |
make[1]: Entering directory '/go/src/github.com/containerd/cri/test/selinux/policy' | |
make[1]: 'containerd-test.pp' is up to date. | |
make[1]: Leaving directory '/go/src/github.com/containerd/cri/test/selinux/policy' | |
mkdir: created directory '/var/lib/containerd-test' |
Setup the VM:
cd $GOPATH/src/github.com/containerd/cri
./hack/install/install-cni.sh
./hack/install/install-cni-config.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🇩 binaries | |
🇩 test-cri | |
/go/bin/critest | |
'/go/src/github.com/containerd/cri/hack/../_output/containerd' -> '/usr/local/bin/containerd-test' | |
changing security context of '/usr/local/bin/containerd-test' | |
make[1]: Entering directory '/go/src/github.com/containerd/cri/test/selinux/policy' | |
rm -fR tmp | |
rm -f *.pp | |
/usr/share/selinux/devel/include/services/container.if:13: Error: duplicate definition of container_runtime_domtrans(). Original definition on 13. | |
/usr/share/selinux/devel/include/services/container.if:40: Error: duplicate definition of container_runtime_run(). Original definition on 40. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
critest version: 1.18.0-89-gbaca4a1 | |
Running Suite: CRI validation | |
============================= | |
Random Seed: [1m123456789[0m - Will randomize all specs | |
Will run [1m90[0m of [1m97[0m specs | |
[0m[k8s.io] Container[0m [90mruntime should support basic operations on container[0m | |
[1mruntime should support removing stopped container [Conformance][0m | |
[37m/usr/src/github.com/kubernetes-sigs/cri-tools/pkg/validate/container.go:134[0m | |
[BeforeEach] [k8s.io] Container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🇩 binaries | |
🇩 test-cri | |
/go/bin/critest | |
'/go/src/github.com/containerd/cri/hack/../_output/containerd' -> '/usr/local/bin/containerd-test' | |
changing security context of '/usr/local/bin/containerd-test' | |
make[1]: Entering directory '/go/src/github.com/containerd/cri/test/selinux/policy' | |
rm -fR tmp | |
rm -f *.pp | |
/usr/share/selinux/devel/include/services/container.if:13: Error: duplicate definition of container_runtime_domtrans(). Original definition on 13. | |
/usr/share/selinux/devel/include/services/container.if:40: Error: duplicate definition of container_runtime_run(). Original definition on 40. |