I hereby claim:
- I am runcom on github.
- I am runcom (https://keybase.io/runcom) on keybase.
- I have a public key whose fingerprint is 09B9 8F09 3E2D C310 E250 69B5 B2BE AD15 0DE9 36B9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
SWARM_SECRET=91pqsf3o0nax7mrfoiy5zy1d9 \ | |
SWARM_CA_HASH=sha256:6b802f9d75708d71ea07c95c16ff5c26eaea01899010b6f401f63185ddacd375 \ | |
SWARM_MASTER=192.168.122.57 \ | |
ansible-playbook setup_worker.yml -i workers --ask-pass |
$ mkdir busybox-oci | |
$ docker save --format oci busybox:latest | tar -C busybox-oci -xf - |
#!/bin/sh | |
PROG=${PROG:-docker} | |
if [ ! -f $PROG.spec ]; then | |
echo "no $PROG.spec found" | |
exit 1 | |
fi | |
BRANCH=$(cat $PROG.spec | grep "Version: " | sed -e "s/Version: //" | cut -f1,2 -d.) |
{ | |
"default": [ | |
{ | |
"type": "reject" | |
} | |
], | |
"transports": { | |
"docker": { | |
"registry.access.redhat.com/rhel7": [ | |
{ |
$ export id=$(docker run -d busybox sleep 10000) | |
$ docker exec -d $id tail -f /dev/null # runaway process | |
$ export exec_id=$(docker inspect $id | jq -r '.[0].ExecIDs[0]') # just getting the first one since there's only one | |
$ sudo kill -9 $(sudo cat /var/run/docker/libcontainerd/containerd/$id/$exec_id/pid) | |
$ docker inspect $id | jq -r '.[0].ExecIDs' # should be null as we killed it! |
package main | |
import ( | |
"bytes" | |
"io/ioutil" | |
"github.com/docker/engine-api/client" | |
"github.com/docker/engine-api/types" | |
"github.com/docker/engine-api/types/container" |
$ cid=$(docker run -d busybox top) | |
$ docker exec -d $cid sleep 10000 | |
$ execid=$(docker inspect $cid | jq -r '.[0].ExecIDs[0]') | |
$ echo -e "GET /exec/$execid/json HTTP/1.0\r\n" | nc -U /var/run/docker.sock | grep Pid || false |
version: 0.1 | |
log: | |
fields: | |
service: registry | |
storage: | |
cache: | |
blobdescriptor: inmemory | |
filesystem: | |
rootdirectory: ./reg_store | |
http: |
# Centos 7 VM, 8GB ram, 20+GB storage | |
# dnf update | |
# dnf install gpgme-devel libassuan-devel libseccomp-devel device-mapper-devel btrfs-progs-devel glibc-static glibc-devel glib2-devel iptables git golang | |
# export GOPATH=$HOME/go | |
# export PATH=$PATH:$GOPATH/bin | |
# go get -d github.com/opencontainers/runc | |
# go get -d github.com/kubernetes-incubator/cri-o | |
# go get -d k8s.io/kubernetes | |
# go get -d github.com/containernetworking/cni |