Better HN
topnewbestaskshowjobs
Log inSign up

mrunalp

4 karma · joined Dec 20, 2016 (9y ago) · 4 submissions

Maintainer of runc, OCI runtime spec and cri-o.
Submissions

comment 7y ago · link · parent

Buildah gives you access to the workdir for the build so you can do interesting things like copy or rsync your build artifacts into your container. Check out the example here - https://github.com/umohnani8/Demos/blob/commons/security/sec... and use of dnf install to root dir (which could be replaced by debootstrap or equivalent) https://github.com/umohnani8/Demos/blob/commons/security/sec....

comment 9y ago · link · parent

If you enable user namespaces as well, then you don't need any of that. For example:

  [mrunal@local rootfs]$ id
  uid=1000(mrunal) gid=1000(mrunal) groups=1000(mrunal),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
  [mrunal@local rootfs]$ unshare -m -u -n -i -p -f --mount-proc -r sh
  sh-4.4# ps -ef
  UID        PID  PPID  C STIME TTY          TIME CMD
  root         1     0  0 09:42 pts/12   00:00:00 sh
  root         2     1  0 09:42 pts/12   00:00:00 ps -ef
  sh-4.4#

comment 9y ago · link · parent

The kubernetes pods share ipc and network namespaces (and pid soon). You may be referring to mount namespace by volumes namespace. The mount namespace is the minimum that distinguishes one container from the other as that's the mean by which they see different file-system hierarchies created from their images.

k8s volumes are bind mounted into the containers in a pod.

comment 9y ago · link · parent

The OCI runtime-spec is very close to 1.0. We are just using the rc version for now.