Pular para o conteúdo principal

Postagens

Destaques

Running a smallest container using systemd

To run containers, you don't need docker. You just need linux kernel, and some tools to control kernel resources. Docker is a nice way to use container, but not the only one.

SystemD does the job. So if you have it will can run containers without docker as requirement. Since today systemd is the most used init system in linux world, it is a relevant fact.

In this post I will show you how to create a systemd container from scratch.

First all you need a empty directory where you will create a root file strucutre to be used inside the container. In this example I will run bash.

mkdir lib cp /bin/bash bin/ cp /lib/ld-2.25.90.so lib cp /lib/lic.so.6 lib cp /lib/lidl.so.2 lib cp /lib/libncursesw.so.6 lib sudo systemd-nspawn --machine mycontainer --directory $PWD /lib/ld-2.25.90.so /bin/bash
Of course you can do the same with other binaries too. Eg. If you want to know what dependencies does "go" have, just run:

/lib/ld-2.25.90.so --list /usr/bin/go linux-vdso.so.1 (0x00007fffb…

Últimas postagens

Vulkan on LFS using intel i915

LFS, here we go, again.

Minha Estrutura Web Ideal

Docker security - Not so perfect as it seems...

Building runC on LFS

static ELF dependencies search for docker images

How to make a very, very, small docker image for dynamic programs.

Docker for development environments

Docker on LFS - The hard way

Explicando os 4 bytes do chmod