0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

image.png

はじめに

参考サイト

GitHub
GitHub runc

runc install

まず、こちらが完了していることが条件となる。
必要なパッケージ

image.png

[実行コマンド]
git clone https://github.com/opencontainers/runc

[結果]
Cloning into 'runc'...
remote: Enumerating objects: 43105, done.
remote: Counting objects: 100% (690/690), done.
remote: Compressing objects: 100% (424/424), done.
remote: Total 43105 (delta 340), reused 547 (delta 260), pack-reused 42415
Receiving objects: 100% (43105/43105), 20.87 MiB | 7.66 MiB/s, done.
Resolving deltas: 100% (28300/28300), done.

ディレクトリを移動する。

[実行コマンド]
cd runc

ビルドする。

[実行コマンド]
make

[結果]
rm -f libcontainer/dmz/binary/runc-dmz
go generate -tags "seccomp urfave_cli_no_docs " ./libcontainer/dmz
make[1]: Entering directory '/home/mainte/runc/libcontainer/dmz'
gcc -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib -lgcc -static -o binary/runc-dmz _dmz.c
strip -gs binary/runc-dmz
make[1]: Leaving directory '/home/mainte/runc/libcontainer/dmz'
go build -trimpath "-buildmode=pie"  -tags "seccomp urfave_cli_no_docs " -ldflags "-X main.gitCommit=v1.2.0-rc.2-18-g8a324d67 -X main.version=1.2.0-rc.2+dev " -o runc .
[実行コマンド]
sudo make install

[結果]
/bin/bash: line 1: go: command not found
/bin/bash: line 1: go: command not found
/bin/bash: line 1: go: command not found
install -D -m0755 runc /usr/local/sbin/runc

最後にinstallと出ているので成功していると思う。
versionを確認する。

[実行コマンド]
/usr/local/sbin/runc --version

[結果]
runc version 1.2.0-rc.2+dev
commit: v1.2.0-rc.2-18-g8a324d67
spec: 1.2.0
go: go1.22.5
libseccomp: 2.5.3

トラブルシュート

goが無いエラー。以下を参照してインストールを行う。
go install

gccが認識されないエラー

[実行コマンド]
sudo apt install gcc
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?