Skip to main content

πŸš€ Start the First Container

Before running applications in MOS, the Docker service must be configured and enabled.
Containers can then be deployed either manually through the Docker section or via the MOS Hub.

MOS provides two different ways to start containers:

MethodDescription
DockerManual container configuration
MOS HubTemplate-based container deployment (app store style)

βš™οΈ Docker Service Configuration​

Before creating any containers, the Docker service must be configured.

Navigate to:

Docker β†’ Docker Service

Docker Service Configuration


πŸ”˜ Docker Service​

Enables or disables the Docker engine.

important

Docker must be enabled before containers can be created.


πŸ“ Directory​

Defines where Docker stores internal data such as images and layers.

Example:

/mnt/main/system/docker

This directory should be located on a fast and reliable storage pool.

warning

If you plan to put this directory on a mergerfs pool, you must select the real path to a disk from your mergerfs pool, for example: /var/mergerfs/main/system/docker


πŸ’Ύ AppData​

Defines the base path for persistent container configuration data.

Example:

/mnt/main/appdata
tip

This location is critical for container persistence and should be backed up regularly.


πŸ—„οΈ Filesystem​

Defines the Docker storage driver filesystem.

Options:

  • overlay2 (default, recommended)
  • btrfs (if your storage uses btrfs)
warning

Changing the storage driver requires recreating all containers. To do so safely:

  1. Stop the Docker service
  2. Delete the Docker directory (usually inside your system folder)
  3. Change the storage driver
  4. Re-enable the Docker service

🌐 Docker Network Mode​

Defines how Docker networking is handled.

Common options:

  • ipvlan
  • macvlan
  • bridge

Choose a mode that matches your network setup and container requirements.


⏱️ Start Wait​

Defines the delay (in seconds) before Docker starts during system boot.

Example: 30

note

Useful when storage pools or network interfaces need additional time to become available.

Docker Wait Times


πŸ”„ Update Check​

Enables automatic checks for container image updates.


⬆️ Auto Update​

Automatically updates containers based on the configured schedule.

danger

Use with caution in production environments.


πŸ“‹ Docker Overview Page​

Navigate to:

Docker

This page lists all configured containers and provides an overview of:

  • Container name and state
  • Image
  • Image size β€” click the calculator action to calculate it on demand
  • Exposed ports
  • IP address
  • Network mode
  • Autostart status

The State column also shows whether an image update is available:

IconMeaning
green checkImage is up to date
red circular arrowA newer image is available; click it to pull the update

Clicking the chevron at the end of a Compose stack row expands it to show the containers that belong to the stack.

Docker Overview


πŸ“¦ Docker Compose​

Navigate to:

Docker β†’ β‹― (bottom right) β†’ Create Compose Stack

This allows deploying one or multiple containers using a Docker Compose YAML definition.

Available fields:

FieldDescription
Stack NameName of your compose stack
Compose YAMLYour compose file content
Environment VariablesVariables passed to the containers
Icon URLIcon displayed in the UI
Web UI URLShortcut to the web interface
tip

Docker Compose is recommended for complex multi-container applications.


πŸ—‚οΈ Docker Compose Stacks​

Containers deployed using Docker Compose are displayed as a stack in the Docker overview.
A stack represents a group of containers that belong together and are managed as a single unit.

Example:

  • immich-compose (4/4 started)

Docker Compose Stack

The stack header shows:

  • Stack name
  • Number of running containers
  • Overall stack state

πŸ” Expanding Docker Stacks​

Docker Compose stacks can be expanded to show the individual containers inside.

Each container within a stack:

  • Has its own state
  • Can be monitored individually
  • Shares the same Compose configuration

This allows visibility into complex applications while keeping the overview clean.

Docker Compose Stack Expand


πŸŽ›οΈ Stack Actions​

Clicking the stack menu provides the following actions:

ActionDescription
Start StackStarts all containers in the stack
Stop StackStops all containers in the stack
Restart StackRestarts all containers in the stack
Edit StackOpens the Docker Compose configuration for editing
Remove StackRemoves the entire stack and all associated containers
Pull Stack ImagesPulls the latest images for all containers in the stack
Force Update StackPulls the latest images and recreates all containers in the stack
note

Stack actions always apply to all containers within the stack.


πŸ”§ Docker Action Menu​

The action menu (three-dot button) provides additional Docker management features.

ActionDescription
βž• Create Docker ContainerCreate a new container manually
πŸ“¦ Create Compose StackDeploy containers using a Compose YAML file
πŸ—‚οΈ Create Docker groupOrganize containers into logical groups
⏱️ Sort / Wait TimesReorder containers and define startup delays
🧹 Unused Docker ImagesView and remove unused container images
πŸ” Check for UpdatesManually check for available image updates
⬆️ Update AllUpdate all containers at once

Docker Action Menu


πŸ–±οΈ Container Context Menu​

Each individual container provides a context menu with management actions.

ActionDescription
🌍 Web UIOpens the container's web interface (if configured)
πŸ’» TerminalOpens an interactive shell inside the container
⏹️ StopGracefully stops the container
πŸ”„ RestartRestarts the container
☠️ KillImmediately stops the container without graceful shutdown
✏️ EditOpens the container configuration for editing
πŸ“œ LogsDisplays the container logs
⬆️ Force UpdatePulls the latest image and recreates the container
πŸ—‘οΈ DeleteRemoves the container and its configuration
note

These actions apply only to the selected container.

Docker Container Context Menu


πŸ› οΈ Creating a Docker Container (Manual)​

Navigate to:

Docker β†’ Add container


πŸ“ Basic Configuration Fields​

FieldDescription
TemplateLoad a previously saved container configuration
NameUnique container name
RepositoryDocker image (e.g. lscr.io/linuxserver/code-server)
NetworkDocker network to attach the container to
ContainerOptional Target container when the network is set to container-network (depending on network mode)
Custom IPOptional static IP (depending on network mode)
Default ShellShell used for interactive container access
GPUAssign GPU resources if supported
PrivilegedGrants extended system permissions β€” use only if required
No AutoupdateExcludes the container from automatic updates
Extra ParametersAdditional docker run flags appended before the image name, e.g. --restart=unless-stopped
Post ParametersCommand and arguments appended after the image name, overriding the image's default command

πŸ”© Additional Configuration​

FieldDescription
PathsMap host directories to container paths
PortsExpose container ports to the host
DevicesPass through host devices
VariablesEnvironment variables used by the container
LabelsDocker labels attached to the container

🌍 Web UI URL​

Optional shortcut link to the container web interface.


🎨 Icon​

Defines the container icon shown in the UI using Material Design Icons (MDI) identifiers.

Example:

mdi-vpn

⚠️ Errors During Container Creation​

If Docker reports an error while creating a container, you are redirected back to the Docker overview page. Your configuration is not lost - it is saved as a template. Note that Docker may report errors that are not actual errors, such as exposed ports on a container network. In this case, the container will still be created.

tip

Open Docker β†’ Add container again and select your container from the Template dropdown to restore and correct the previously entered settings. Saved templates are stored as JSON files in /boot/config/system/docker/templates and can be viewed with the Web Terminal or File Browser, but do not edit or delete them β€” they are managed automatically, and manual changes may cause container creation to fail.


πŸ—‚οΈ Docker Groups​

Navigate to:

Docker β†’ Create Docker group

Docker groups allow logical grouping of containers for better organization.

Configuration options: | Group Name | Icon (MDI identifier) | Select Containers


▢️ Autostart Behavior​

Autostart behavior differs depending on how containers are deployed.

πŸ“¦ Docker Compose Stacks​

  • Autostart is controlled at the stack level
  • Individual containers inherit the stack behavior

🐳 Single Containers​

  • Autostart can be enabled or disabled per container
tip

Use stack-level autostart for multi-container applications to ensure proper startup order.


πŸ›οΈ MOS Hub​

The MOS Hub provides a template-based container deployment experience similar to an app store.

Features:

  • Preconfigured Docker templates
  • Simplified setup process
  • Automatic path, port, and variable configuration
tip

MOS Hub is the recommended starting point for new users.

MOS Hub


Parts of this documentation were created with the assistance of AI tools. All AI-generated content has undergone review, but it may still contain inaccuracies, omissions, or outdated information.