MEGA CMD image for Docker or Podman.
The main motivation of this project is the functional MEGA CMD running in a container on 64-bit Rasperry Pi OS (arm64/v8).
./build.sh
... or ...
docker build -t dehahost/megacmd:latest .
1/ Create sync folder
mkdir $HOME/Documents/MEGAsync
2/ Run MEGA CMD container in background
syncdir="${HOME}/Documents/MEGAsync"
docker run -d \
--name megacmd \
-u $(stat -c %u:%g ${syncdir}) \
-v ${syncdir}:/home/mega/sync \
dehahost/megacmd:latest
Note
The -u
parameter defines the same user/group for the container as for the folder.
3/ Jump in, login and start syncing
docker exec -it megacmd mega-cmd
1/ Create sync folder
mkdir /srv/megasync
chown 9100:9100 /srv/megasync
2/ Copy docker-compose.yaml
from repo and change volume path
services:
megacmd:
volumes:
# ...
- - $HOME/Documents/MEGAsync:/home/mega/sync
+ - /srv/megasync:/home/mega/sync
3/ Start it and configure it
docker compose up -d
docker compose exec megacmd mega-cmd
- Image is using community-maintained build of
megacmd
for Alpine Linux. For more information visit Alpine's GitLab aports repo. - Supported platforms are
amd64
andarm64
. - By default, MEGA CMD server is running unpriviledged under "mega" user (UID/GID=9100).