{"id":16088021,"url":"https://github.com/ruslanys/docker-megacmd","last_synced_at":"2025-03-18T06:30:46.587Z","repository":{"id":211066479,"uuid":"586868625","full_name":"ruslanys/docker-megacmd","owner":"ruslanys","description":"MEGACmd wrapped into Docker image","archived":false,"fork":false,"pushed_at":"2024-04-22T19:35:39.000Z","size":9,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T07:49:31.925Z","etag":null,"topics":["docker","docker-image","mega","megacmd"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/ruslanys/megacmd/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruslanys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T12:27:01.000Z","updated_at":"2024-09-09T01:31:48.000Z","dependencies_parsed_at":"2024-10-27T17:23:23.622Z","dependency_job_id":"7648773d-9967-4ac5-92da-e63ec43d89ab","html_url":"https://github.com/ruslanys/docker-megacmd","commit_stats":null,"previous_names":["ruslanys/docker-megacmd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanys%2Fdocker-megacmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanys%2Fdocker-megacmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanys%2Fdocker-megacmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruslanys%2Fdocker-megacmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruslanys","download_url":"https://codeload.github.com/ruslanys/docker-megacmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243906754,"owners_count":20367092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","mega","megacmd"],"created_at":"2024-10-09T13:34:41.730Z","updated_at":"2025-03-18T06:30:46.090Z","avatar_url":"https://github.com/ruslanys.png","language":"Dockerfile","readme":"# MegaCMD Docker image\n\n[![Docker Automated build](https://img.shields.io/docker/automated/ruslanys/megacmd.svg?style=flat-square\u0026colorB=007EC6)](https://hub.docker.com/r/ruslanys/megacmd/) [![Docker Pulls](https://img.shields.io/docker/pulls/ruslanys/megacmd.svg?style=flat-square\u0026colorB=007EC6)](https://hub.docker.com/r/ruslanys/megacmd/)\n\n## How it works\n\n1. Run container with Mega CMD server and mounted configuration and data directories.\n2. Obtain session using your login and password.\n3. Execute necessary commands.\n\n## Start a Daemon\n\nBecause of the issue [#623](https://github.com/meganz/MEGAcmd/issues/623)\nwe need to have an unique UUID at `/etc/machine-id`. Otherwise, `mega-sync` will not work.\n\nWe have 2 options: \n\n1. Bypass the `machine-id` from the host.\n\n```\ndocker run -d --name megacmd --restart always \\\n    -v /etc/machine-id:/etc/machine-id:ro \\\n    -v /opt/MEGA/config:/root/.megaCmd \\\n    -v /opt/MEGA/data:/root/MEGA \\\n    ruslanys/megacmd\n```\n\n2. Generate a new UUID for the container.\n\n```\ndocker run -d --name megacmd --restart always \\\n    -v /opt/MEGA/config:/root/.megaCmd \\\n    -v /opt/MEGA/data:/root/MEGA \\\n    ruslanys/megacmd\n```\n\n```\ndocker exec -it megacmd bash\ncat /proc/sys/kernel/random/uuid \u003e /etc/machine-id\n```\n\n## Commands Execution\n\n```\ndocker exec -it megacmd mega-login $username $password\ndocker exec -it megacmd mega-sync /root/MEGA /\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanys%2Fdocker-megacmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruslanys%2Fdocker-megacmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruslanys%2Fdocker-megacmd/lists"}