(Optional) Creating a Docker Container
For details about how to create a Docker container and build and install an image, see Using Docker to Build a MySQL Docker Image in the Kunpeng BoostKit for Database MySQL Installation Guide.
Refer to the following command to create a Docker container. The container configuration is 8 vCPUs and 32 GB memory, with NUMA affinity bound to node 0 (where CPUs 0 to 79 are allocated to node 0 in this configuration).
1 2 3 4 | docker run --cpus=8 --cpuset-cpus=0-79 --cpuset-mems=0 -m 32g --net=ipvlan_network --cap-add CAP_SYS_ADMIN \ --privileged=true -itd --name mysql-docker-ipvlan-numa0-1 \ -v /home:/home -v /usr:/usr -v /mnt:/mnt -v /lib/modules:/lib/modules -v /data:/data -v /etc:/etc \ openeuler-22.03-lts-sp4 /bin/bash |
Parent topic: Setting Up the Environment and Networking