Running Megasync on armhf using Docker

What is this?

Using the image presented here, you can synchronize files with Mega using a Docker container on an ARM device.

Getting Started

Obtian the scripts from Github as follows:

git clone

The image armhf/masysmalocal/megasync may then be built on an amd64 host sytsem using make build.

You can run it as follows:

docker run --restart=unless-stopped -d -p \
            -v ...:/fs/backup \
            -v ...:/home/linux-fan/.local/share/data \

Volumes are as follows:

Map the directory to be synced to this node.
Map a directory to contain the Megasync configuration to this one.

For successful read/write access from inside and outside the container, the files from the shared volumes should belong to user and group with ID 1024. If you want to use a different ID, change the Dockerfile accordingly and rebuild the image.

In order to graphically interact with the client, connect via VNC like this:

vncviewer localhost:0

About the Upgrader

An experimental package called mdvl-trival-automatic-update is supplied as part of this repository. It is installed inside the container as to keep a 24/7-running container up to date automatically. This script extends unattended-upgrades by a means of automatically chosing between multiple mirror hosts. By default, it checks for to be online and if that is not the case, it uses instead. This way, you can run your own local mirror to upgrade your server on a best-effort basis: If the upgrade happens while your local mirror is online, it will chose the local mirror. If the upgrade happens while the local mirror is not reachable, the process will take the upgrade from the internet.

If you wonder about supplying a .deb package as the “source” code – there is nothing more to it than the files contained so there is no need to provide a “separate” source code. If you want to rebuild the .deb, extract it’s contents and use dpkg-deb or MDPC. If you use MDPC, the package belongs to the “raw” category and the files should be in a directory called after the package name.

Newer Ideas Website 5 (1.0.0) – no Flash, no JavaScript, no Webfont, no Copy Protection, no Mobile First. No bullshit. No GUI needed. Works with any browser.

Created: 2017/04/02 00:33:14 | Revised: 2020/02/24 22:10:04 | Tags: docker, arm | SRC (Pandoc MD) | GPL

Copyright (c) 2017, 2019, 2020 For furhter info send an e-mail to

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <>.