Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruslanys/docker-megacmd
MEGACmd wrapped into Docker image
https://github.com/ruslanys/docker-megacmd
docker docker-image mega megacmd
Last synced: 11 days ago
JSON representation
MEGACmd wrapped into Docker image
- Host: GitHub
- URL: https://github.com/ruslanys/docker-megacmd
- Owner: ruslanys
- License: mit
- Created: 2023-01-09T12:27:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T19:35:39.000Z (7 months ago)
- Last Synced: 2024-10-10T13:34:39.785Z (28 days ago)
- Topics: docker, docker-image, mega, megacmd
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/ruslanys/megacmd/
- Size: 8.79 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MegaCMD Docker image
[![Docker Automated build](https://img.shields.io/docker/automated/ruslanys/megacmd.svg?style=flat-square&colorB=007EC6)](https://hub.docker.com/r/ruslanys/megacmd/) [![Docker Pulls](https://img.shields.io/docker/pulls/ruslanys/megacmd.svg?style=flat-square&colorB=007EC6)](https://hub.docker.com/r/ruslanys/megacmd/)
## How it works
1. Run container with Mega CMD server and mounted configuration and data directories.
2. Obtain session using your login and password.
3. Execute necessary commands.## Start a Daemon
Because of the issue [#623](https://github.com/meganz/MEGAcmd/issues/623)
we need to have an unique UUID at `/etc/machine-id`. Otherwise, `mega-sync` will not work.We have 2 options:
1. Bypass the `machine-id` from the host.
```
docker run -d --name megacmd --restart always \
-v /etc/machine-id:/etc/machine-id:ro \
-v /opt/MEGA/config:/root/.megaCmd \
-v /opt/MEGA/data:/root/MEGA \
ruslanys/megacmd
```2. Generate a new UUID for the container.
```
docker run -d --name megacmd --restart always \
-v /opt/MEGA/config:/root/.megaCmd \
-v /opt/MEGA/data:/root/MEGA \
ruslanys/megacmd
``````
docker exec -it megacmd bash
cat /proc/sys/kernel/random/uuid > /etc/machine-id
```## Commands Execution
```
docker exec -it megacmd mega-login $username $password
docker exec -it megacmd mega-sync /root/MEGA /
```