Skip to content

A docker container for running mpsyt successfully from my mac, using pulseaudio driver

Notifications You must be signed in to change notification settings

peter-mcconnell/docker-media-player-for-OSX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-media-player (mpsyt + pulseaudio)

mpyst and pulseaudio in docker. Made so that I can run my audio from a container and therefore from my terminal, on OSX.

demo

Steps

  1. Ensure pulse audio is running on your host:
pulseaudio --load=module-native-protocol-tcp --exit-idle-time=-1 --daemon
  1. Run container with necessary volumes mounted:
docker run --rm \
  -e PULSE_SERVER=docker.for.mac.localhost \
  -v ~/.config/pulse:/home/pulseaudio/.config/pulse \
  -it \
  --name player \
  pemcconnell/mpsyt:0.1

Optional

Add this to your .bashrc or other dotfiles and gain a d_player command:

d_player() {
  docker run --rm \
  -e PULSE_SERVER=docker.for.mac.localhost \
  -e http_proxy=$HTTP_PROXY \
  -e https_proxy=$HTTPS_PROXY \
  -v ~/.config/pulse:/home/pulseaudio/.config/pulse \
  -it \
  --name player \
  pemcconnell/mpsyt:0.1 "$@"
}

Shout-outs

This is very much a combination of existing work by others:

Alternatives

https://github.com/tizonia/docker-tizonia/ is a very solid alternative. Similarly you can add a convenience function in bash with:

d_player() {
  docker run --rm \
    -e PULSE_SERVER=docker.for.mac.localhost \
    -e http_proxy=$HTTP_PROXY \
    -e https_proxy=$HTTPS_PROXY \
    -v ~/.config/pulse:/home/tizonia/.config/pulse \
    -v ~/.config/tizonia:/home/tizonia/.config/tizonia \
    -ti \
    --name tizonia \
    pemcconnell/tizonia:latest "$@"
}

About

A docker container for running mpsyt successfully from my mac, using pulseaudio driver

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published