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