cyphar

cyphar

Docker: Image Rebasing

an invention by cyphar

git rebase is a very useful construct in source control management, as it allows you to re-apply your changes atop a different branch of the same repository. While this concept transitions perfectly to container management (updating a container could be as easy as a docker rebase), and the Docker client is inspired by the git semantics, Docker has no such feature (in fact, Solomon Hykes used rebase and merge as examples of things "that we don't want"). Currently, zypper-docker works by applying an updated layer on top of an existing image. While this does work quite well, it separates the process of updating the base image and updating all of your derivative images (you need to re-download new packages for each derivative image). So, this project will be working on implementing something like git rebase for Docker images. There are several issues with this, mainly involving the fact that we are rebasing binaries and not source code, so merge conflicts will probably be quite messy. But it should be possible to implement some form of simple rebase method (which will essentially fall back to docker build in the worst case, which is what you were going to run anyway). By maximising the reuse of the existing image layers, it should be possible to reduce build times quite significantly.

Updated almost 5 years ago. 4 hacker ♥️.

Add PIDs cgroup support to runC and Docker

an invention by cyphar

Currently, dealing with forkbombs and similar issues with Docker and runC is not very nice (you have to set a global limit for all Docker processes or you have to limit kernel memory which isn't very practical). I'm going to work on getting some [patches][2] merged into runC and Docker to enable PIDs support for Docker.

Updated almost 5 years ago. 1 hackers ♥️.

Rootless Containers

an invention by cyphar

In many cases, people want to start containers on a system where the administrator is not happy about granting privileges to users or installing any new software. For example, when I was a researcher and wanted to run Python 3 on a computing cluster it was not possible to get the administrator to install Docker or Python 3. In recent Linux kernels, it has been possible to create containers without any privileges. All that's missing is a container runtime that allows you to do this. LXC is close but falls short (it requires certain privileged processes and PAM modules for everything to work).

Updated about 4 years ago. 1 hackers ♥️.

OCI Image Distribution with RPMs

a project by cyphar

Currently the Open Container Initiative doesn't specify a distribution protocol or system, and the current "standard" format is the Docker registry protocol. Aside from technical reservations with Docker registry, it is also not an OCI-compliant system and will require a lot of work to integrate it into all of the openSUSE/SUSE tooling. So, a very insane idea I came up with is to convert OCI images to RPMs and then distribute them as simple RPMs. The idea would be to use capabilities (Provides: oci(...)) to implement the different names of images and then also the dependency graph of blobs (which would naturally be de-duplicated).

Updated almost 5 years ago. 3 hacker ♥️.

orca: build OCI images from Dockerfiles

a project by cyphar

Currently the main complaint people have about OCI tooling is the lack of a transition from Docker to OCI. With umoci you have a lot of low-level image configuration abilities, and skopeo and runC cover the other major parts of the picture, but you need something to tie them together. I'm not going to be implementing YAWAR (Yet Another Wrapper Around Runc). It's just going to be a single script that can take a Dockerfile and create an OCI image that is basically the same as the Docker image you would get -- with the big difference being that you didn't need Docker and everything used the OCI. The other cool benefit of this is that you could build images without privileges (since rootless containers now exist in runC and in umoci).

Updated almost 5 years ago. 1 hackers ♥️.

libpathrs

a project by cyphar

The plan is to implement a safe path resolution library for Linux to avoid the plentiful numbers of security vulnerabilities that have been seen in the wild related to path resolution race conditions and various other attacks. I've been working on kernel-space solutions but even if they were merged, it is difficult to use them safely directly. So this library intends to provide simple wrappers that everyone can use. https://github.com/openSUSE/libpathrs

Updated almost 5 years ago. 1 hackers ♥️. 1 follower.
7
7
1
6

Looking for projects around:

Nothing at the moment

Activity

  • about 4 years ago: cyphar started paperback
  • about 4 years ago: cyphar originated paperback
  • almost 5 years ago: cyphar liked libpathrs
  • almost 5 years ago: cyphar added keyword "security" to libpathrs
  • almost 5 years ago: cyphar added keyword "filesystem" to libpathrs
  • almost 5 years ago: cyphar added keyword "rust" to libpathrs
  • almost 5 years ago: cyphar started libpathrs
  • almost 5 years ago: cyphar originated libpathrs
  • almost 7 years ago: cyphar liked orca: build OCI images from Dockerfiles
  • almost 7 years ago: cyphar started orca: build OCI images from Dockerfiles
  • almost 7 years ago: cyphar originated orca: build OCI images from Dockerfiles
  • about 7 years ago: cyphar added keyword "rpm" to OCI Image Distribution with RPMs
  • about 7 years ago: cyphar added keyword "packaging" to OCI Image Distribution with RPMs
  • about 7 years ago: cyphar added keyword "containers" to OCI Image Distribution with RPMs
  • about 7 years ago: cyphar started OCI Image Distribution with RPMs
  • about 7 years ago: cyphar liked OCI Image Distribution with RPMs
  • about 7 years ago: cyphar originated OCI Image Distribution with RPMs
  • almost 8 years ago: cyphar added keyword "containers" to Rootless Containers
  • almost 8 years ago: cyphar added keyword "docker" to Rootless Containers
  • almost 8 years ago: cyphar added keyword "ptrace" to Rootless Containers
  • almost 8 years ago: cyphar liked Rootless Containers
  • almost 8 years ago: cyphar started Rootless Containers
  • almost 8 years ago: cyphar originated Rootless Containers
  • over 8 years ago: cyphar added keyword "docker" to Add PIDs cgroup support to runC and Docker
  • over 8 years ago: cyphar added keyword "runc" to Add PIDs cgroup support to runC and Docker
  • All Activity