[GH-ISSUE #65] Tmpfs.size invalid when running docker-compose pull #26

Closed
opened 2026-10-15 12:48:05 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @curiousblueprints on GitHub (Feb 7, 2022).
Original GitHub issue: https://github.com/games-on-whales/gow/issues/65

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.

Originally created by @curiousblueprints on GitHub (Feb 7, 2022). Original GitHub issue: https://github.com/games-on-whales/gow/issues/65 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.
bsakaguchi 2026-10-15 12:48:05 +00:00
Author
Owner

@zb140 commented on GitHub (May 8, 2022):

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.

<!-- gh-comment-id:1120479586 --> @zb140 commented on GitHub (May 8, 2022): 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`.
Author
Owner

@ABeltramo commented on GitHub (May 8, 2022):

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.

<!-- gh-comment-id:1120480654 --> @ABeltramo commented on GitHub (May 8, 2022): 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.
Author
Owner

@zb140 commented on GitHub (Jul 30, 2022):

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

<!-- gh-comment-id:1200078391 --> @zb140 commented on GitHub (Jul 30, 2022): This may be fixed now, with the newest `docker-compose`. I'm using v2.5.0 and I no longer get the error.
Author
Owner

@zb140 commented on GitHub (Sep 4, 2022):

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.

<!-- gh-comment-id:1236408506 --> @zb140 commented on GitHub (Sep 4, 2022): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/gow#26
No description provided.