Sign inSign up

dehahost/megacmd

By dehahost

•Updated 7 days ago

MEGA CMD image

Image
Databases & storage
0

8.6K

dehahost/megacmd repository overview

⁠Quick reference

⁠About this image

dehahost/megacmd is a rootless image based upon the latest Ubuntu LTS⁠ providing the MEGAcmd⁠ server and its utilities.
It's updated around the first Friday of each month due to base image patches.

⁠How to run this image

⁠Docker commands

# 1/ Choose your sync directory
megadir="${HOME}/Documents/MEGAsync"

# 2/ Create it (if it doesn't exist)
mkdir "$megadir"

# 3/ Run megacmd image as a daemon
docker run -d \
    --name megacmd \
    -u "$(stat -c %u:%g $megadir)" \
    -v "${megadir}:/home/mega/sync" \
    dehahost/megacmd:latest

# 4/ Manage it
docker exec -it megacmd mega-cmd

...or you can leverage some built-in automation instead, like Autologin⁠ and Autosync⁠.

⁠Docker Compose

docker-compose.yaml:

services:
  megacmd:
    image: "docker.io/dehahost/megacmd:latest"
    #restart: "unless-stopped"
    #user: "1001:1001"
    volumes:
      # :: Make the workdir persistent
      - megahome:/home/mega

      # :: Synchronization folder(s)
      #    By default, UID/GID is 9100, so chmod your sync folder accordingly.
      #    OR uncomment the `user` key above and change the value to the folder owner (stat -c %u:%g /path/to/folder)
      - $HOME/Documents/MEGAsync:/home/mega/sync

volumes:
  megahome:

...in your terminal:

# 1/ Create a sync dir (if it doesn't exist)
mkdir "${HOME}/Documents/MEGAsync"

# 2/ Run the megacmd image as a daemon
docker compose up -d

# 3/ Manage it
docker compose exec megacmd mega-cmd

Tag summary

Content type

Image

Digest

sha256:b107f96c6…

Size

74.1 MB

Last updated

7 days ago

docker pull dehahost/megacmd