Skip to content

Commit aebcb9d

Browse files
authored
Merge pull request #40 from ctrsploit/containerd/v2.0.4
containerd/v2.0.4
2 parents 0570247 + 90591c4 commit aebcb9d

File tree

7 files changed

+96
-1
lines changed

7 files changed

+96
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
| tag | version |
2121
|-----|---------|
22-
| [containerd-v2.2.1](./containerd/v2.0.3/) | v0.2.0 |
22+
| [containerd-v2.2.1](./containerd/v2.2.1/) | v0.2.0 |
23+
| [containerd-v2.0.4](./containerd/v2.0.4/) | v0.3.0 |
2324
| [containerd-v2.0.3](./containerd/v2.0.3/) | v0.4.0 |
2425

2526
### kubenertes

containerd/v2.0.4/.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VERSION=v0.3.0
2+
IMAGE=containerd-v2.0.4
3+
COMPOSE_PROJECT_NAME=containerd-2-0-4

containerd/v2.0.4/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ================================
2+
# Configuration Variables
3+
# ================================
4+
ARG HOSTNAME=containerd-2-0-4
5+
ARG VERSION_CONTAINERD=2.0.4
6+
# https://github.com/containerd/containerd/blob/v2.0.4/script/setup/runc-version
7+
ARG VERSION_RUNC=1.2.5
8+
ARG VERSION_RUNC_IMAGE=0.4.0
9+
10+
# ================================
11+
# Internal Variables
12+
# ================================
13+
ARG URL_ARTIFACT_CONTAINERD=https://github.com/containerd/containerd/releases/download/v${VERSION_CONTAINERD}/containerd-${VERSION_CONTAINERD}-linux-amd64.tar.gz
14+
ARG URL_ARTIFACT_SYSTEMD=https://raw.githubusercontent.com/containerd/containerd/refs/tags/v${VERSION_CONTAINERD}/containerd.service
15+
ARG BASE_IMAGE=ghcr.io/ctrsploit/runc-v${VERSION_RUNC}:ctr_v${VERSION_RUNC_IMAGE}
16+
17+
# ================================
18+
# Build Stages
19+
# ================================
20+
FROM ${BASE_IMAGE}
21+
ARG HOSTNAME
22+
ARG URL_ARTIFACT_CONTAINERD
23+
ARG URL_ARTIFACT_SYSTEMD
24+
# install containerd
25+
ADD ${URL_ARTIFACT_CONTAINERD} /tmp/containerd.tar.gz
26+
RUN tar Cxzvf /usr/local /tmp/containerd.tar.gz \
27+
&& rm /tmp/containerd.tar.gz
28+
# config systemd
29+
ADD ${URL_ARTIFACT_SYSTEMD} /usr/local/lib/systemd/system/containerd.service
30+
RUN echo "${HOSTNAME}" > /etc/hostname

containerd/v2.0.4/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# containerd v2.0.4
2+
3+
| Type | Image | Notes |
4+
| ---- | ----- | ----- |
5+
| dqd | ghcr.io/ctrsploit/containerd-v2.0.4:latest | points to `v0.3.0` |
6+
| dqd | ghcr.io/ctrsploit/containerd-v2.0.4:v0.3.0 | migrate from docker_archive |
7+
| dqd | ssst0n3/docker_archive:containerd-v2.0.4_v0.2.0 | bump the base image |
8+
| dqd | ssst0n3/docker_archive:containerd-v2.0.4_v0.1.0 | - |
9+
| ctr | ghcr.io/ctrsploit/containerd-v2.0.4:ctr_v0.3.0 | - |
10+
| ctr | ssst0n3/docker_archive:ctr_containerd-v2.0.4_v0.2.0 | - |
11+
| ctr | ssst0n3/docker_archive:ctr_containerd-v2.0.4_v0.1.0 | - |
12+
13+
## usage
14+
15+
```shell
16+
$ cd containerd/v2.0.4
17+
$ docker compose -f docker-compose.yml -f docker-compose.kvm.yml up -d
18+
```
19+
20+
### run a container
21+
22+
```shell
23+
root@containerd-2-0-4:~# ctr i pull docker.io/library/hello-world:latest
24+
root@containerd-2-0-4:~# ctr run docker.io/library/hello-world:latest hello
25+
26+
Hello from Docker!
27+
...
28+
```
29+
30+
### versions
31+
32+
```shell
33+
$ ./ssh
34+
root@containerd-2-0-4:~# containerd --version
35+
root@containerd-2-0-4:~# runc --version
36+
```
37+
38+
## build
39+
40+
```shell
41+
make all ENV=containerd/v2.0.4
42+
```
43+
44+
for developers:
45+
46+
```dockerfile
47+
FROM ghcr.io/ctrsploit/containerd-v2.0.4:ctr_v0.3.0
48+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
services:
2+
vm:
3+
devices:
4+
- "/dev/kvm:/dev/kvm"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
vm:
3+
image: ghcr.io/ctrsploit/containerd-v2.0.4:v0.3.0
4+
ports:
5+
- "20400:22"
6+
tty: true
7+
stdin_open: true

containerd/v2.0.4/ssh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
sshpass -p root ssh -o StrictHostKeyChecking=no -p 20400 root@127.0.0.1

0 commit comments

Comments
 (0)