gow icon indicating copy to clipboard operation
gow copied to clipboard

Tmpfs.size invalid when running docker-compose pull

Open curiousblueprints opened this issue 3 years ago • 3 comments

Ubuntu server 20.04.3 LTS Docker Compose version v2.2.3 Docker version 20.10.12, build e91ed57

I'm following the instructions for headless Ubuntu. I receive the following error during docker-compose pull:

error while interpolating services.retroarch.volumes.[].tmpfs.size: failed to cast to expected type: strconv.ParseInt: parsing "500M": invalid syntax

If I go into the .yml file and manually edit it to "500M", it works.

curiousblueprints avatar Feb 07 '22 03:02 curiousblueprints

Apparently the magic that automatically turns 500M into 524288000 happens before variable interpolation... I also tried changing the SHM_SIZE in the .env file to just 500 and putting size: "${SHM_SIZE}M" in docker-compose.yml but that didn't work either 😦 . I guess if we want it to be a variable we're going to just have to put an integer number of bytes in .env.

zb140 avatar May 08 '22 20:05 zb140

I guess this changed on docker-compose v2. We can safely remove that from the .env file if it's causing troubles since it's such a low level detail that probably no one will ever modify.

ABeltramo avatar May 08 '22 20:05 ABeltramo

This may be fixed now, with the newest docker-compose. I'm using v2.5.0 and I no longer get the error.

zb140 avatar Jul 30 '22 03:07 zb140

I'm going to go ahead and close this -- now that we've added the run-gow script and switched to docker compose v2, we're still not seeing this error anymore. If anyone runs into it again, please reopen.

zb140 avatar Sep 04 '22 20:09 zb140