[FEAT] Force offline mode

Open
#1,142 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker
Domain
devops

Research direction

Start by locating the modmanager and modcache handling for offline fallback, then trace how mod downloads and network timeouts are initiated. Define the environment-variable behavior so containers can skip live downloads when forced offline, and verify that cached mods still work without waiting for network timeouts.

Written by the indexing model from the issue text.

Description

enhancement no-issue-activity
Is this a new feature request?
  • I have searched the existing issues
Name of mod

The mod system itself

Wanted change

It'd be really handy to have a way to force docker-mods to operate in offline mode.

Reason for change

I have a couple of containers that don't have a connection to the internet that I'd like to be able to use mods with. Using the modmanager and modcache, this actually does work, but every time I restart the container I have to wait for network timeouts while it tries to download the mod "live" before falling back to offline mode. If I could tell the container up front that it's not going to work, it would save a bunch of startup time.

Proposed code change

Maybe a DOCKER_MODS_FORCE_OFFLINE environment variable that can be set for containers that want it? If this is the sort of change that might be accepted, I'm happy to look into what a concrete implementation would look like.

Dominant language
No language data
Stars
1.5k
Forks
329
Avg merge
5h 5m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxserver/docker-mods

All issues in linuxserver/docker-mods

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.