Original project by https://github.com/jagrosh/MusicBot. Simply a docker container to run it.
6.5K
Overview Docker is a very useful to for creating repeatable images that can be used by other individuals. While Docker makes things easier and more reproduceable compose is preferd for visibly making things simple to manage and easier to debug.
A few things have changed please be sure to read over the recent changes if you are running latest. Older images are not longer valid for use and will be removed on next update. make sure to add A /bot mount so updates can be seamless. Also note that if you need to update the image from now on just reboot the docker image.
As this bot has a simple setup all that is needed is to mount a Directory. Place in the configuration file and Playlists folder and it will work just like the normal usual bot.
Directory to mount: Holds your config:
-v '/path/to/host/':'/config':'rw'
Holds jgrosh music bot jar:-v '/path/to/host/':'/bot':'rw'Name of docker image:
--name='musicbot'Name of docker network: Do not change unless you know what you are doing.
--net='bridge'Image Name:
'jagrosh/jmusicbot'Example
sudo docker run -d \
--name='<name_of_choice>' \
--net='bridge' \
-v '/home/<USERNAME_HOST>/musicbot_data/config':'/config':'rw' \
-v '/home/<USERNAME_HOST>/musicbot_data/bot':'/bot':'rw' \
'jagrosh/jmusicbot'
Other useful useful docker commands.
logs
sudo docker logs <name_of_choice>
Start/Stop docker
sudo docker start / stop <name_of_choice>
remove installed docker
sudo docker rm <name_of_choice>
Rmove unused images/networks
Use with caution!!!
sudo docker system prune
List Containers
sudo docker ps
Content type
Image
Digest
Size
473.2 MB
Last updated
over 5 years ago
docker pull arouzing/jmusicbot