Start Docker on raspberry pi 4 (raspberry pi os) and start Centos 7 on it It is the construction memo (As of 2020.07.30, under construction)
environment: raspberry pi 4 docker (web installation with the bundled function of openmediavault)
Step 1 Install docker image for centos7
pi@raspi:~ $ sudo su root@raspi:/home/pi# docker pull centos:centos7
Step 2 start docker
root@raspi:/home/pi# docker run -it -d --privileged --name centos7-1 centos:centos7 /sbin/init
Step 3 Confirm that the centos7-1 container is running in Portainer Launch the Portainer console and enter:
yum update yum install NetworkManager systemctl enable NetworkManager.service systemctl start NetworkManager.service yum -y install openssh-server systemctl enable sshd.service systemctl start sshd.service
Step 4 Install various
yum install python3 python3-pip pip install flask
Step 5 Create an image from the container
Stop the container from the WEB console Execute the following command from the console docker commit centos7-1 centos7base:centos7base
An image called centos7base will be created, so from the next time onwards, start from this image
Recommended Posts