Galaxy Kirin Advanced Server Operating System V10 is for enterprise-level key business, adapting to the requirements of host system reliability, security, performance, scalability and real-time in the era of virtualization, cloud computing, big data and industrial Internet. It provides internal security, cloud native support, in-depth optimization of domestic platforms, high performance, based on CMMI Level 5 standards. A new generation of manageable autonomous server operating systems; Homologous support for autonomous platforms such as Flying, Dragon Core, Shengwei, Mega Core, Haiguang, Kuipeng, etc. Supports the construction of large data center server highly available clusters, load balancing clusters, distributed clustered file systems, virtualization applications and container cloud platforms, and can be deployed in physical servers and virtualization environments, private, public and hybrid cloud environments. Applies to government, national defense, finance, education, taxation, public security, auditing, transportation, medical, manufacturing and other fields.
The company has a project that needs to deploy the system on kylinos. At first there was a headache, and I was afraid that various programs could not be installed and used. When the server was installed for use, I found that this is not based on centos. Although the version based on which is not known, it can be tested, so I did a single operation and finally found that it is based on entos8. The kernel version of the system is 4.19. That's not a big problem. Now that it's based on Centos8, the programs that can run on Centos8 can certainly run there too, and then I started a pleasant (painful) docker installation journey.
Configure Ali Cloud Centos8 Mirror Source
The reason for configuring the mirror source for Centos8 is that additional dependencies are needed to install the docker, which are not found in Kirin's official source.
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
Configure Ali Cloud docker mirror source
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo sed -i 's+download.docker.com+mirrors.aliyun.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
Define yum variable & modify repo
Modify $release ever to centos_in CentOS and docker repo files Version, because $release ever was modified to 10 in Kirin server operating system V10, and we need to use the centos 8 mirror source. If you don't replace it, basically every address of the warehouse is 404.
echo "8" > /etc/yum/vars/centos_version sed -i 's/$releasever/$centos_version/g' /etc/yum.repos.d/docker-ce.repo sed -i 's/$releasever/$centos_version/g' /etc/yum.repos.d/CentOS-Base.repo
Creating a yum cache
Nothing to say
View docker-ce version
yum list docker-ce --showduplicates | sort -r docker-ce.x86_64 3:20.10.9-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.8-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.7-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.6-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.5-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.4-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.3-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.2-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.1-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.12-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.11-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.10-3.el8 docker-ce-stable docker-ce.x86_64 3:20.10.0-3.el8 docker-ce-stable docker-ce.x86_64 3:19.03.15-3.el8 docker-ce-stable docker-ce.x86_64 3:19.03.15-3.el8 @docker-ce-stable docker-ce.x86_64 3:19.03.14-3.el8 docker-ce-stable docker-ce.x86_64 3:19.03.13-3.el8 docker-ce-stable
I want to install docker-ce version 19.03 here because I have an unknown permission problem when using the latest version 20.10 to boot the container and Kirin server has relatively little operating system data. I can't find a solution, so I have to go back and change to the last stable version.
The 20.10 error message is as follows:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:318: starting container process caused "permission denied": unknown. ERRO error waiting for container: context canceled
Or install version 19.03.
yum install docker-ce-19.03.15 docker-ce-cli-19.03.15 containerd.io -y
systemctl start docker systemctl enable docker
Start hello-world for testing
root@localhost ~]# docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 2db29710123e: Pull complete Digest: sha256:2498fce14358aa50ead0cc6c19990fc6ff866ce72aeb5546e1d59caac3d0d60f Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ For more examples and ideas, visit: https://docs.docker.com/get-started/
Perfect use -:)