Skip to content

[FEAT] Force offline mode #1142

@zb140

Description

@zb140

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions