GithubHelp home page GithubHelp logo

carlonluca / docker-mldonkey Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 3.0 233 KB

Project to build a docker image containing the mldonkey service.

License: GNU General Public License v3.0

Dockerfile 67.27% Shell 32.73%
mldonkey docker

docker-mldonkey's Introduction

mldonkey docker image

This repository hosts the Dockerfile for building mldonkey docker image. Note that this image includes both the current version of mldonkey from the official repo https://github.com/ygrek/mldonkey, more fixes from my fork https://github.com/carlonluca/mldonkey, a new websocket interface for mldonkey and a new responsibe webapp from https://github.com/carlonluca/mldonkey-next.

Screenshot

Desktop Mobile
desktop mobile

Available versions

Versions tagged just with a software versions are builds of mldonkey from official mldonkey releases. The mldonkey code is currently taken from https://github.com/ygrek/mldonkey.

Versions including a hash are versions built from specific commits. Commits do not refer to the official repo but to my fork https://github.com/carlonluca/mldonkey. If you want to know what the image includes, refer to that repo history and branches (in particular the dev branch). My fork tries to stay in sync with the more official repo above.

Currently, dev images include the dark theme and all the most recent commits to the official repo + other updates. Refer to https://github.com/carlonluca/mldonkey for more info.

Refer to https://bugfreeblog.duckdns.org/docker-images-for-the-mldonkey-service for more info about each available image.

Owner and permissions

The mldonkey daemon running inside the container must be able to read and modify data inside the volume. You'll also probably want to properly share data with a user available in your host. The mldonkey daemon always use the mldonkey user and group, but you can setup the environment so that the container assignes the desired uid and gid to the mldonkey user and group inside the container. This will allow you to see those files with the proper permissions in your host.

Example

Let's assume your user is named luca and has the uid 1001, and that you want your data to be assigned group luca, which has the same gid 1001. In this case you can ask the container to assign the value 1001 to uid and gid mldonkey in the container by using the env variables:

MLDONKEY_UID=1001
MLDONKEY_GID=1001

This will establish a mapping between user luca in the host to user mldonkey in the container, and group luca in the host with group mldonkey in the container.

Ports

Network Type MLDonkey default Configuration file
http_port HTTP 4080 downloads.ini
mldonkey-next interface HTTP 4081 container remap
(required for mldonkey-next)
telnet_port TCP 4000 downloads.ini
gui_port TCP 4001 downloads.ini
websocket to core TCP 4002 container remap
(required for mldonkey-next)
websocket for log stream TCP 4003 container remap
(WARNING: no authentication)
eDonkey2000 TCP random donkey.ini
eDonkey2000 UDP TCP port + 4 donkey.ini
Kad TCP random donkey.ini, Kademlia section
Kad1 UDP Same as TCP donkey.ini, Kademlia section
Overnet TCP random donkey.ini, Overnet section
Overnet UDP Same as TCP donkey.ini, Overnet section
BitTorrent Client TCP 6882 bittorrent.ini
BitTorrent Tracker TCP 6881 bittorrent.ini
BitTorrent DHT UDP random bittorrent.ini
DirectConnect TCP 4444 directconnect.ini
DirectConnect UDP Same as TCP directconnect.ini

Running the Container

To run mldonkey using this image:

$ docker run -i -t carlonluca/mldonkey

You may change the admin password by using the comand useradd admin <password, or you can specify MLDONKEY_ADMIN_PASSWORD environment variable with a password:

$ docker run -i -t -e MLDONKEY_ADMIN_PASSWORD=supersecret carlonluca/mldonkey

mldonkey stores data inside /var/lib/mldonkey. You may want to mount the data directory to local filesystem. Doing this will persist the data when you re-create the docker container. It is also easier to get downloaded files this way.

$ docker run -i -t -v "`pwd`/data:/var/lib/mldonkey" carlonluca/mldonkey

Your data will be available under data/incoming directory where you run the docker run command.

You'll probably also want to map some ports to be able to access the daemon. For example:

docker create --name=mldonkey \ 
              -v <path to core files>:/var/lib/mldonkey:rw \
              -e MLDONKEY_GID=<gid> \
              -e MLDONKEY_UID=<uid> \
              -e TZ=<timezone> \
              -e MLDONKEY_ADMIN_PASSWORD=password \
              -p 4000:4000 \
              -p 4001:4001 \
              -p 4002:4002 \
              -p 4080:4080 \
              -p 4081:4081 \
              -p <edonkey_port>:<edonkey_port> \
              -p <edonkey_port>:<edonkey_port>/udp \
              -p <kad>:<kad> \
              -p <kad>:<kad>/udp \
              -p <overnet>:<overnet> \
              -p <overnet>:<overnet>/udp \
              -p 6881:6881 \
              -p 6882:6882 \
              -p 3617:3617/udp \
              -p 4444:4444 \
              -p 4444:4444/udp \
              carlonluca/mldonkey:dev

NOTE: for the randomly chosen ports, you'll have to run the container first and let the core create his conf files. Then create the container again by remapping the chosen ports.

Notes for Docker for Mac

mldonkey does not like the temp directory to reside in Mac filesystem. It is better to mount /var/lib/mldonkey/temp inside the Docker VM filesystem.

docker-mldonkey's People

Contributors

carlonluca avatar cheungpat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-mldonkey's Issues

mlDonkey close at start

Resetting mldonkey uid to 998
Resetting mldonkey gid to 100
groupmod: GID '100' already exists
/usr/lib/python2.7/dist-packages/supervisor/options.py:461: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2024-02-20 23:07:26,261 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-02-20 23:07:26,261 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2024-02-20 23:07:26,267 INFO RPC interface 'supervisor' initialized
2024-02-20 23:07:26,267 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-02-20 23:07:26,267 INFO supervisord started with pid 17
2024-02-20 23:07:27,269 INFO spawned: 'mldonkey-next' with pid 20
2024-02-20 23:07:27,271 INFO spawned: 'mldonkey' with pid 21
Waiting for mldonkey to start...
WebSocket server listening on port 4002
2024-02-20 23:07:28,383 INFO success: mldonkey-next entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-02-20 23:07:28,383 INFO success: mldonkey entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
mldonkey process closed
2024-02-20 23:07:37,291 INFO exited: mldonkey (exit status 0; expected)

port dissapear on run container

Hello
This stack:
version: '2'

services:
mldonkey:
image: carlonluca/mldonkey:latest
environment:
- MLDONKEY_UID=1 #user admin
- MLDONKEY_GID=100
- MLDONKEY_ADMIN_PASSWORD=xxxx
volumes:
- /mnt/data/config/mldonkey:/var/lib/mldonkey
- /mnt/data/config/mldonkey/temp:/var/lib/mldonkey/temp
ports:
- 4080:4080 #web ui
- 19040:19040
- 19044:19044
restart: unless-stopped

When run container the port dissapear from public.
Log:
2023/04/10 08:20:43 [dMain] Libmagic file-type recognition database present
2023/04/10 08:20:43 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:20:52 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:20:52 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:20:52 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:20:52 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:20:52 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:20:52 [cO] loaded language resource file
2023/04/10 08:20:52 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:20:52 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:20:52 [dMain] Libmagic file-type recognition database present
2023/04/10 08:20:52 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:21:08 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:21:08 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:21:08 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:21:08 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:21:08 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:21:08 [cO] loaded language resource file
2023/04/10 08:21:08 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:21:08 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:21:08 [dMain] Libmagic file-type recognition database present
2023/04/10 08:21:08 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:21:28 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:21:28 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:21:28 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:21:28 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:21:28 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:21:28 [cO] loaded language resource file
2023/04/10 08:21:28 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:21:28 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:21:28 [dMain] Libmagic file-type recognition database present
2023/04/10 08:21:28 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:30:36 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:30:36 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:30:36 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:30:36 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:30:36 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:30:36 [cO] loaded language resource file
2023/04/10 08:30:36 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:30:36 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:30:36 [dMain] Libmagic file-type recognition database present
2023/04/10 08:30:36 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:30:43 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:30:43 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:30:43 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:30:43 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:30:43 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:30:43 [cO] loaded language resource file
2023/04/10 08:30:43 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:30:43 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:30:44 [dMain] Libmagic file-type recognition database present
2023/04/10 08:30:44 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:30:50 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:30:50 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:30:50 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:30:50 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:30:50 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:30:50 [cO] loaded language resource file
2023/04/10 08:30:50 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:30:51 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:30:51 [dMain] Libmagic file-type recognition database present
2023/04/10 08:30:51 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:31:00 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:31:00 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:31:00 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:31:00 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:31:00 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:31:00 [cO] loaded language resource file
2023/04/10 08:31:00 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:31:00 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:31:00 [dMain] Libmagic file-type recognition database present
2023/04/10 08:31:00 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:31:07 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:31:07 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:31:07 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:31:07 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:31:07 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:31:07 [cO] loaded language resource file
2023/04/10 08:31:07 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:31:07 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:31:08 [dMain] Libmagic file-type recognition database present
2023/04/10 08:31:08 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:31:15 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:31:15 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:31:15 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:31:15 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:31:15 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:31:15 [cO] loaded language resource file
2023/04/10 08:31:15 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:31:15 [DNS] Resolving [mldonkey.sf.net] ...
2023/04/10 08:31:15 [dMain] Libmagic file-type recognition database present
2023/04/10 08:31:15 [cO] Logging in /var/lib/mldonkey/mlnet.log
2023/04/10 08:31:23 [cO] Starting MLDonkey 3.1.7.git ...
2023/04/10 08:31:23 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2023/04/10 08:31:23 [cO] raised ulimit for open files from 1024 to 1048576
2023/04/10 08:31:23 [cO] MLDonkey is working in /var/lib/mldonkey
2023/04/10 08:31:23 [Gettext] Loading language resource mlnet_strings.C.UTF-8
2023/04/10 08:31:23 [cO] loaded language resource file
2023/04/10 08:31:23 [DNS] Resolving [9f8b18ca5eac] ...
2023/04/10 08:31:24 [DNS] Resolving [mldonkey.sf.net] ...

Thanks

Docker image also for Raspberry Pi?

Do you know how to get this image to also run on a Raspberry Pi (I have a 3B+)?

Is this image the latest version of mldonkey (3.1.7)?

Thank you in advance for your work.

can init can not create files in directory

Hello
su docker run -i -t -e MLDONKEY_ADMIN_PASSWORD=xxxx -v "/mnt/data/Films:/var/lib/mldonkey" -e PUID=xxxx -e PGID=xxx carlonluca/mldonkey

--
Waiting for mldonkey to start...
2021/09/03 22:55:16 [cO] Starting MLDonkey 3.1.7.git ...
2021/09/03 22:55:16 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2021/09/03 22:55:16 [cO] raised ulimit for open files from 1024 to 1048576
2021/09/03 22:55:16 [cO] MLDonkey is working in /var/lib/mldonkey

2021/09/03 22:55:16 [cO] creating new MLDonkey base directory in /var/lib/mldonkey

2021/09/03 22:55:16 can not create files in directory /var/lib/mldonkey, check rights...
/usr/lib/mldonkey/mldonkey_command: 15: /usr/lib/mldonkey/mldonkey_command: nc: not found
/usr/lib/mldonkey/mldonkey_command: 15: /usr/lib/mldonkey/mldonkey_command: nc: not found
/usr/lib/mldonkey/mldonkey_command: 15: /usr/lib/mldonkey/mldonkey_command: nc: not found
2021/09/03 22:55:20 [cO] Starting MLDonkey 3.1.7.git ...
2021/09/03 22:55:20 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2021/09/03 22:55:20 [cO] raised ulimit for open files from 1024 to 1048576
2021/09/03 22:55:20 [cO] MLDonkey is working in /var/lib/mldonkey

2021/09/03 22:55:20 [cO] creating new MLDonkey base directory in /var/lib/mldonkey
2021/09/03 22:55:20 can not create files in directory /var/lib/mldonkey, check rights...

"/var/lib/mldonkey" is inside docker i supose and with -v can store in local path... or not?
thnks

MLdonkey settings not persistent

Hello, I am facing the issue that after a fresh install mldonkey works fine but when I change some settings like the dark skin, client name etc. next time the container restarts those settings are gone and I start over from scratch, I Monitored the downloads.ini and it get not updated while doing the modifications in the WEB frontend:

root@raspberrypi:~/docker/mldonkey $ docker ps -a 
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

root@raspberrypi:~/docker/mldonkey $ docker images
REPOSITORY   TAG       IMAGE ID   CREATED   SIZE

root@raspberrypi:~/docker/mldonkey $ id 1002
uid=1002(mldonkey) gid=1002(mldonkey) groups=1002(mldonkey)

root@raspberrypi:~/docker/mldonkey $ cat docker-compose.yml 
version: '3'
services:
  mldonkey:
    image: carlonluca/mldonkey
    container_name: mldonkey 
    ports: 
      - "4080:4080"
      - "23760-23764:23760-23764"
    volumes:
      - ./conf:/var/lib/mldonkey
    environment:
      - MLDONKEY_UID=1002
      - MLDONKEY_GID=1002
    restart: unless-stopped
    
root@raspberrypi:~/docker/mldonkey $ ls ./conf
ls: cannot access './conf': No such file or directory

root@raspberrypi:~/docker/mldonkey $ docker compose up
[+] Running 7/7
 ✔ mldonkey 6 layers [⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                                                                                                                  20.3s 
   ✔ 741eb9419543 Pull complete                                                                                                                                                                                                        3.0s 
   ✔ 5d6aed333dff Pull complete                                                                                                                                                                                                        1.2s 
   ✔ 19df23fd7477 Pull complete                                                                                                                                                                                                        0.6s 
   ✔ f7c2958369cf Pull complete                                                                                                                                                                                                        3.6s 
   ✔ 8cc1e91be607 Pull complete                                                                                                                                                                                                        2.0s 
   ✔ e7ec0fe3ac90 Pull complete                                                                                                                                                                                                        2.9s 
[+] Running 1/1
 ✔ Container mldonkey  Created                                                                                                                                                                                                       189.6s 
Attaching to mldonkey
mldonkey  | Resetting mldonkey uid to 1002
mldonkey  | Resetting mldonkey gid to 1002
mldonkey  | Waiting for mldonkey to start...
mldonkey  | 2023/11/09 15:30:59 [cO] Starting MLDonkey 3.1.7.git ... 
mldonkey  | 2023/11/09 15:30:59 [cO] Language EN, locale UTF-8, ulimit for open files 1024
mldonkey  | 2023/11/09 15:30:59 [cO] raised ulimit for open files from 1024 to 1048576
mldonkey  | 2023/11/09 15:30:59 [cO] MLDonkey is working in /var/lib/mldonkey
mldonkey  | 
mldonkey  | 2023/11/09 15:30:59 [cO] creating new MLDonkey base directory in /var/lib/mldonkey
mldonkey  | 
mldonkey  | 2023/11/09 15:30:59 [cO] loaded language resource file
mldonkey  | 2023/11/09 15:30:59 [DNS] Resolving [d565726c66d9] ...
mldonkey  | 2023/11/09 15:30:59 [DNS] Resolving [mldonkey.sf.net] ...
mldonkey  | 2023/11/09 15:30:59 [dMain] Libmagic file-type recognition database present
mldonkey  | 2023/11/09 15:30:59 [cO] Logging in /var/lib/mldonkey/mlnet.log
mldonkey  | 2023/11/09 15:30:59 [dMain] Core started
mldonkey  | ����Welcome to MLDonkey 3.1.7.git
mldonkey  | Welcome on mldonkey command-line
mldonkey  | 
mldonkey  | Use ? for help
mldonkey  | 
mldonkey  | MLdonkey command-line:
mldonkey  | > > -p  set allowed_ips 0.0.0.0/0 save
mldonkey  | No such command -p
mldonkey  | 
mldonkey  | MLdonkey command-line:
mldonkey  | > ����Welcome to MLDonkey 3.1.7.git
mldonkey  | Welcome on mldonkey command-line
mldonkey  | 
mldonkey  | Use ? for help
mldonkey  | 
mldonkey  | MLdonkey command-line:
mldonkey  | > > -p  kill
mldonkey  | No such command -p
mldonkey  | 
mldonkey  | MLdonkey command-line:
mldonkey  | 2023/11/09 15:31:04 [cO] Starting MLDonkey 3.1.7.git ... 
mldonkey  | 2023/11/09 15:31:04 [cO] Language EN, locale UTF-8, ulimit for open files 1024
mldonkey  | 2023/11/09 15:31:04 [cO] raised ulimit for open files from 1024 to 1048576
mldonkey  | 2023/11/09 15:31:04 [cO] MLDonkey is working in /var/lib/mldonkey
mldonkey  | 2023/11/09 15:31:04 [Gettext] Loading language resource mlnet_strings.C.UTF-8
mldonkey  | 2023/11/09 15:31:04 [cO] loaded language resource file
mldonkey  | 2023/11/09 15:31:04 [DNS] Resolving [d565726c66d9] ...
mldonkey  | 2023/11/09 15:31:04 [DNS] Resolving [mldonkey.sf.net] ...
mldonkey  | 2023/11/09 15:31:04 [dMain] Libmagic file-type recognition database present
mldonkey  | 2023/11/09 15:31:04 [cO] Logging in /var/lib/mldonkey/mlnet.log
mldonkey  | > 
mldonkey exited with code 0

root@raspberrypi:~/docker/mldonkey $ docker ps
CONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS          PORTS                                                                                                                                              NAMES
d565726c66d9   carlonluca/mldonkey   "/bin/sh -c /entrypo…"   3 minutes ago   Up 14 seconds   0.0.0.0:4080->4080/tcp, :::4080->4080/tcp, 4000/tcp, 19040/tcp, 19044/tcp, 0.0.0.0:23760-23764->23760-23764/tcp, :::23760-23764->23760-23764/tcp   mldonkey

root@raspberrypi:~/docker/mldonkey $ docker stop mldonkey
mldonkey

root@raspberrypi:~/docker/mldonkey $ ls -la conf
total 10496

drwxr-xr-x 9 mldonkey mldonkey     4096 Nov  9 16:31 .
drwxr-xr-x 3 root     root         4096 Nov  9 16:30 ..
-rw-r--r-- 1 mldonkey mldonkey     2867 Nov  9 16:31 bittorrent.ini
-rw------- 1 mldonkey mldonkey 10485760 Nov  9 16:31 config_files_space.tmp
-rw-r--r-- 1 mldonkey mldonkey     2023 Nov  9 16:31 directconnect.ini
-rw-r--r-- 1 mldonkey mldonkey     8968 Nov  9 16:31 donkey.ini
-rw-r--r-- 1 mldonkey mldonkey    34606 Nov  9 16:31 downloads.ini
-rw-r--r-- 1 mldonkey mldonkey     2225 Nov  9 16:31 fasttrack.ini
-rw-r--r-- 1 mldonkey mldonkey      267 Nov  9 16:31 files.ini
-rw-r--r-- 1 mldonkey mldonkey      889 Nov  9 16:31 fileTP.ini
-rw-r--r-- 1 mldonkey mldonkey      116 Nov  9 16:31 friends.ini
drwxr-xr-x 4 mldonkey mldonkey     4096 Nov  9 16:30 incoming
-rw-r--r-- 1 mldonkey mldonkey        2 Nov  9 16:31 mldonkey.pid
-rwxr-xr-x 1 mldonkey mldonkey     1197 Nov  9 16:31 mldonkey_submit
drwxr-xr-x 2 mldonkey mldonkey     4096 Nov  9 16:31 mldonkey_tmp
-rw-r--r-- 1 mldonkey mldonkey     5515 Nov  9 16:32 mlnet.log
-rw-r--r-- 1 mldonkey mldonkey    85594 Nov  9 16:31 mlnet_strings.C.UTF-8
-rw-r--r-- 1 mldonkey mldonkey      292 Nov  9 16:31 mlsubmit.reg
drwxr-xr-x 2 mldonkey mldonkey     4096 Nov  9 16:31 old_config
-rw-r--r-- 1 mldonkey mldonkey       12 Nov  9 16:31 onlinesig.dat
drwxr-xr-x 2 mldonkey mldonkey     4096 Nov  9 16:31 searches
-rw-r--r-- 1 mldonkey mldonkey     2500 Nov  9 16:31 searches.ini
-rw-r--r-- 1 mldonkey mldonkey      311 Nov  9 16:31 servers.ini
drwxr-xr-x 2 mldonkey mldonkey     4096 Nov  9 16:30 shared
-rw-r--r-- 1 mldonkey mldonkey       87 Nov  9 16:31 shared_files.ini
-rw-r--r-- 1 mldonkey mldonkey       87 Nov  9 16:31 shared_files_new.ini
-rw-r--r-- 1 mldonkey mldonkey      402 Nov  9 16:31 statistics.ini
-rw-r--r-- 1 mldonkey mldonkey     1589 Nov  9 16:31 stats.ini
-rw-r--r-- 1 mldonkey mldonkey    10589 Nov  9 16:31 stats_mod.ini
drwxr-xr-x 2 mldonkey mldonkey     4096 Nov  9 16:31 temp
-rw------- 1 mldonkey mldonkey     1782 Nov  9 16:31 users.ini
drwxr-xr-x 2 mldonkey mldonkey     4096 Nov  9 16:31 web_infos

root@raspberrypi:~/docker/mldonkey $ vim conf/downloads.ini 

root@raspberrypi:~/docker/mldonkey $ grep -B1 '192.168.1.0' conf/downloads.ini
 allowed_ips = [
  "192.168.1.0/24";]

root@raspberrypi:~/docker/mldonkey $ docker start mldonkey
mldonkey```

After doing a modification on the GUI the file was not modified:

root@raspberrypi:~/docker/mldonkey $ stat conf/downloads.ini
  File: conf/downloads.ini
  Size: 34611     	Blocks: 72         IO Block: 4096   regular file
Device: 179,2	Inode: 384774      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1002/mldonkey)   Gid: ( 1002/mldonkey)
Access: 2023-11-09 16:34:15.161819869 +0100
Modify: 2023-11-09 16:34:15.161819869 +0100
Change: 2023-11-09 16:34:15.173819496 +0100
 Birth: 2023-11-09 16:34:15.161819869 +0100
 
root@raspberrypi:~/docker/mldonkey $ docker restart mldonkey
mldonkey

root@raspberrypi:~/docker/mldonkey $ stat conf/downloads.ini
  File: conf/downloads.ini
  Size: 34611     	Blocks: 72         IO Block: 4096   regular file
Device: 179,2	Inode: 384773      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1002/mldonkey)   Gid: ( 1002/mldonkey)
Access: 2023-11-09 16:37:15.696542576 +0100
Modify: 2023-11-09 16:37:15.696542576 +0100
Change: 2023-11-09 16:37:15.716542026 +0100
 Birth: 2023-11-09 16:37:15.696542576 +0100

set path of incoming?

Hello
Why i can't set it?:

volumes:
- /mnt/config/mldonkey:/var/lib/mldonkey
- /mnt/config/mldonkey/temp:/var/lib/mldonkey/temp
#- /mnt/config/mldonkey/completados:/var/lib/mldonkey/incoming/files KO?

All code:
version: '2'

services:
mldonkey:
image: carlonluca/mldonkey:latest
environment:
- MLDONKEY_UID=1000 #user admin
- MLDONKEY_GID=100
- MLDONKEY_ADMIN_PASSWORD=sergio69
volumes:
- /mnt/config/mldonkey:/var/lib/mldonkey
- /mnt/config/mldonkey/temp:/var/lib/mldonkey/temp

  • /mnt/config/mldonkey/completados:/var/lib/mldonkey/incoming/files KO?
    ports:
    - 4080:4080 #web ui
    - 19040:19040
    - 19044:19044
    restart: unless-stopped

i can't start mldonkey service

Hi Luca, I have no way to run your docker.

services:
 mldonkey:
  image: carlonluca/mldonkey
  environment:
  - MLDONKEY_UID=1000 #user admin
  - MLDONKEY_GID=100
  - UUID=1000
  - GUID=100
  - MLDONKEY_ADMIN_PASSWORD=1234
  ports:
  - 4080:4080 
  - 4081:4081
  - 19040:19040
  - 19044:19044
  restart: unless-stopped

MldoneyNext is working in port 4081 but mldonkey server not works.

ps -ae

PID TTY          TIME CMD
  1 ?        00:00:00 run_supervisord
 11 ?        00:00:00 supervisord
 14 ?        00:00:00 mldonkey-next
 28 pts/0    00:00:00 bash
 42 pts/0    00:00:00 ps

cat /var/lib/mldonkey/mlnet.log


2024/06/30 10:47:02 [cO] Started logging...
2024/06/30 10:47:02 [dcCO] LETS reverse clients list NOW
2024/06/30 10:47:02 [cCO] Options correctly saved
2024/06/30 10:47:02 [dMain] loading server.met from web_infos/server.met.gz
2024/06/30 10:47:02 [EDK] server.met loaded from http://www.gruk.org/server.met.gz
2024/06/30 10:47:02 [EDK] 6 servers found, 0 new ones inserted
2024/06/30 10:47:02 [dMain] loading guarding.p2p from web_infos/ipfilter.zip
2024/06/30 10:47:02 [IPblock] loading web_infos/ipfilter.zip
2024/06/30 10:47:02 [IPblock] guarding.p2p found in zip file
2024/06/30 10:47:03 [IPblock] 222266 ranges loaded - optimized to 192083
2024/06/30 10:47:03 [dMain] loading guarding.p2p from web_infos/ipfilter.zip
2024/06/30 10:47:03 [IPblock] loading web_infos/ipfilter.zip
2024/06/30 10:47:03 [IPblock] guarding.p2p found in zip file
2024/06/30 10:47:03 [IPblock] 222266 ranges loaded - optimized to 192083
2024/06/30 10:47:03 [dMain] Check http://mldonkey.sf.net for updates
2024/06/30 10:47:03 [dMain] enabling networks: 
2024/06/30 10:47:03 [dMain] ---- enabling Donkey ----
2024/06/30 10:47:03 [EDK] loading sources completed
2024/06/30 10:47:03 [dMain] using port 20562 (client_port TCP)
2024/06/30 10:47:03 [dMain] using port 20566 (client_port UDP)
2024/06/30 10:47:03 [dMain] ---- enabling interfaces ----
2024/06/30 10:47:03 [dMain] using port 4080 (http_port)
2024/06/30 10:47:03 [dMain] using port 4000 (telnet_port)
2024/06/30 10:47:03 [dMain] using port 4001 (gui_port)
2024/06/30 10:47:03 [dMain] disabled networks: BitTorrent FileTP Fasttrack Direct Connect 
2024/06/30 10:47:03 [dMain] To command: telnet 127.0.0.1 4000
2024/06/30 10:47:03 [dMain] Or with browser: http://127.0.0.1:4080
2024/06/30 10:47:03 [dMain] For a GUI check out http://sancho-gui.sourceforge.net
2024/06/30 10:47:03 [dMain] Connect to IP 127.0.0.1, port 4001
2024/06/30 10:47:03 [dMain] If you connect from a remote machine adjust allowed_ips
2024/06/30 10:47:03 [dMain] Exception Not_found trying to set user_uid [docker]

Thanks in advance!

mldonkey-next "not connected to the core"

Hi,
I've just downloaded the latest (as of July 19) version of carlonluca/mldonkey image and it seems to work, searches/downloads are fine and old interface on 4080 works. I can reach mldonkey-next login page on 4081 but it does not accept login and shows a message, below the login form, which says "Not connected to the core". Any info about how to make it work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.