The
hostnamectl set-hostname hostname
The
hostnamectl set-hostname hostname
Maybe in the old version of the docker environment, when using Docker compose to start the container, you will encounter the following error: Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network This is actually this It is a symptom of running out of default-address-pools. In some environments, docker-compose will use the private network of Class B by default. The private IP of segment 172 has a range, from 172.16.0.0 to 172.31.255.255. That is to say, when we start a docker-compose Project, it will eat a private section of Class B, which is very heroic.
This function is very useful, but be very careful, read it first and then delete it, if you make a wrong directory, you will die miserably
Load the environment variables of .env to the system
No Comment
Post your comment