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?

M2 Mac&dockerで「試して理解 linuxのしくみ」の環境を作る

Last updated at Posted at 2025-01-11

imageの取得

docker pull ubuntu:20.04

コンテナの作成

docker run -it -d --name linux-no-shikumi --platform=linux/amd64 ubuntu

コンテナに入る

docker exec -it linux-no-shikumi bash
# apt-get update
# apt-get install git
Do you want to continue? [Y/n] y
# git clone https://github.com/satoru-takeuchi/linux-in-practice-2nd.git
# apt update && apt install binutils build-essential golang sysstat python3-matplotlib python3-pil fonts-takao fio qemu-kvm virt-manager libvirt-clients virtinst jq docker.io containerd libvirt-daemon-system
# adduser `id -un` libvirt
# adduser `id -un` libvirt-qemu
# adduser `id -un` kvm
# cd linux-in-practice-2nd/01-operating-system-overview/
# ./hello.py
hello world
# exit

再起動

# docker start linux-no-shikumi
# docker exec -it linux-no-shikumi bash
apt-get install strace
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?