Docker (overlay2fs) inside docker – no space left on device

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

I have a host machine on digitalocean. I installed docker there and by default, it uses overlay2fs as a storage driver, so none of the current solutions proposing using devicemapper will work. On this machine, I use docker-compose to run a CI service, to which I also pass the docker’s socket file in order to let the CI inside docker fetch docker images from docker hub and run the CI pipeline there. Whenever the CI starts building, the very first container it creates is `postgres` because it is a “service” used in my CI’s pipeline. The log it runs with is: The files belonging to this database system will be owned by user “postgres”. This user must also own the server process. The database cluster will be initialized with locale “en_US.utf8”. The default database encoding has accordingly been set to “UTF8”. The default text search configuration will be set to “english”. Data page checksums are disabled. fixing permissions on existing directory /var/lib/postgresql/data … ok initdb: error: could not create directory “/var/lib/postgresql/data/pg_wal”: No space left on device initdb: removing contents of data directory “/var/lib/postgresql/data” Whenever the CI’s container tries to fetch an image or do something with already fetched images (like running a container which needs to modify the underlying storage) I receive the “No space left on device” error. I have plenty of space on my host machine, in fact, I am hardly using 50% of it, so just for an idea: overlay 158G 77G 75G 51% /var/lib/docker/overlay2/273061ed5ad5b6aa10d0d5000a72b0779c4ec88abd20de00a77f2fbd25f243fd/merged RAM is also half-free, so I have no idea what space does it need. Not a single thing I’ve googled so far (actually, I had this problem for a year now and I have never been able to fix it!) helped solving this. Now it has become annoying because I can’t use my CI at all (previously, occasional restarts of the service could help, but now nothing helps at all). How to solve this? I can not be the one having this issue in the world. Thanks. submitted by /u/vityafx [link] [comments]

X ITM Cloud News

Patricia

Leave a Reply

Next Post

How do I setup two services to be able to talk with each other?

Wed Sep 16 , 2020
Spread the love          How do I setup two services to be able to talk with each other? I have a case where I have an api that is listening to validate.example.com, which I can access through my browser. But when my express server which tries to do api requests to the […]
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM