Hackebein / docker-garrysmod

Dockerfiles for Garry's Mod
https://hub.docker.com/r/hackebein/garrysmod/
27 stars 2 forks source link

Caching entire Gmod/Workshop installation? #8

Closed ryphon closed 4 years ago

ryphon commented 4 years ago

Hey, is it possible to have the entire gmod/addon installs be in a mounted folder?

Kind of a pain to have them re-download every time the container exits and starts back up.

ryphon commented 4 years ago

I assume it would be something similar to: -v ./overlay:/opt/overlay \

ryphon commented 4 years ago

I guess what I'm really looking for is a way to persist the docker volume and hand it back to the container that created it.

Hackebein commented 4 years ago

Kind of a pain to have them re-download every time the container exits and starts back up.

If you would reuse volumes you wouldn't have the problem.

What you searching for is making the working directory/volume persistent with -v $(pwd)/workdir:/opt/steam or you can reuse volumes.