A docker container to enable Spotify on all Linux distributions
- Ubuntu based container with the official Spotify package
- Pulseaudio connectivity for audio
- X11 socket sharing
- Runs as a normal user (in the docker group)
- Uses a volume container for persistent config and cache
Launch with docker-spotify.sh
Note: For those who wish to keep SELinux enabled, please see my docker-spotify SELinux policy. Hardware acceleration is disabled, and for proper operation it needs to remain this way. If you don't see images on the very first run, you may need to restart spotify (once or twice) to enable them.
On a system with docker installed, run the following command:
curl -s https://raw.githubusercontent.com/syncomm/dockerfiles/master/spotify/docker-spotify.sh | bash
docker-spotify.sh will download the syncomm/spotify container, set up the user's cache container, create the sockets for X11 and Pulseaudio, and launch spotify.
git clone https://github.com/syncomm/dockerfiles.git cd dockerfiles/spotify docker build -t syncomm/spotify .
Run with the supplied script docker-spotify.sh to transfer your X11 cookie and set up the Pulseaudio socket.
Just spun it up a minute ago. Works great. Thank you for making this!
hm... does this image include the spotify package as stated in the description? In this case it violates the spotify license, which basically bans re-distribution...