我们在我们的应用程序中使用docker-compose,并且不熟悉应用程序的这一部分,我们在运行docker docker-compose up --build
后收到此错误:
Mysql: forward host lookup failed: Unknown host
After an inspection to hosts list created by docker-compose:
$ docker network prune
$ docker network ls
$ docker network inspect <desired_network>
I noticed db was not there, so I tried to build it up and see what happens:
$ docker-compose run <desired_db_image>
Getting the correct output:
Initializing database
mkdir: cannot create directory '/var/lib/mysql//mysql': No space left on device
Fatal error Can't create database directory '/var/lib/mysql//mysql'
So you need to free some space :
$ docker system prune
Select: y
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.