Author : 244boy

How is allocation ratio in container? In Openstack there are configutation in nova.conf: #cpu_allocation_ratio=16.0 #ram_allocation_ratio=1.5 so we know the good ratio should be CPU 1:16 and RAM 1:1.5, but how about in docker if we set multiple containers in a 8 processor CPU when we want to maximize CPU and memory usage? Source: Docker..

Read more

In my centos8 container, I installed mysql8: ​wget https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm ​yum install mysql80-community-release-el8-1.noarch.rpm -y ​yum install -y mysql-community-server and I use the below config: [mysql] # CLIENT # # port = 3306 # socket = /var/lib/mysql/mysql.sock [mysqld] # GENERAL # user = mysql # default-storage-engine = InnoDB # socket = /var/lib/mysql/mysql.sock # pid-file = /var/lib/mysql/mysql.pid # ..

Read more

In my centos8.2 docker instance, I installed chrony as NTP client, but I can not run it: [[email protected] src]# /usr/sbin/chronyd -f /etc/chrony.conf adjtimex(0x8001) failed : Operation not permitted [[email protected] src]# service bash: service: command not found [[email protected] src]# /usr/sbin/chronyd adjtimex(0x8001) failed : Operation not permitted as we all know in centos container there can not ..

Read more

I use Docker Desktop run a container with a Volume(/data) to a directory in my macos. Then I created a softlink: in container centos-test‘s /data, I can find it. sh-4.4# ls -l total 0 lrwxr-xr-x 1 root root 72 May 25 03:30 ssl-cdn4-control -> /Users/jack/ScotchBox/my-project/public/ssl-proj/ssl-proj-control you see the it link to my macos directory /Users/jack/ScotchBox/my-project/public/ssl-proj/ssl-proj-control. ..

Read more

I use Docker Desktop run 4 centos containers in my macos. their IP respectively are: container1: 172.17.0.2/16 container2: 172.17.0.3/16 container3: 172.17.0.4/16 container4: 172.17.0.5/16 and they can communicate to each other. but in my macos(host machine), there is no IP who is in 172.17.0.0/16. $ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP> inet 127.0.0.1 netmask 0xff000000 inet6 ..

Read more