Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidk/docker-discord
Discord in a Docker container. Automatically built and pushed to the Docker Hub with Github Actions
https://github.com/davidk/docker-discord
discord docker
Last synced: 10 days ago
JSON representation
Discord in a Docker container. Automatically built and pushed to the Docker Hub with Github Actions
- Host: GitHub
- URL: https://github.com/davidk/docker-discord
- Owner: davidk
- License: other
- Created: 2017-03-24T22:24:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-27T07:45:08.000Z (over 1 year ago)
- Last Synced: 2024-08-01T12:15:55.046Z (3 months ago)
- Topics: discord, docker
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/keyglitch/discord
- Size: 13.7 KB
- Stars: 57
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-discord
This will run the latest release version of Discord in a Docker container:
Canary:
keyglitch/discord:canary
Stable:keyglitch/discord:stable
Depending on the version, Discord will likely download updates and quit, stopping the container -- just re-run to start since the volume it downloads to is persisted.
Note: SELinux on Fedora isn't too happy with this container (mostly to do with desktop notifications through libnotify), so be sure to add exceptions as needed. Sound is also quite finicky, and is not muxed with the host (so playing audio on the host will block the container, vice versa).
docker run --privileged \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--device /dev/snd \
-v discordSettings:/home/discord \
-v /dev/shm:/dev/shm:z \
-v /etc/localtime:/etc/localtime:ro \
-v /var/run/dbus:/var/run/dbus \
-v /var/run/user/$(id -u)/bus:/var/run/user/1000/bus \
-e DBUS_SESSION_BUS_ADDRESS="unix:path=/var/run/user/1000/bus" \
-v /var/run/user/$(id -u)/pulse:/var/run/user/1000/pulse \
-e PULSE_SERVER="unix:/run/user/1000/pulse/native" \
-e DISPLAY=unix$DISPLAY \
--rm \
--group-add $(getent group audio | cut -d: -f3) \
keyglitch/discord:stable