Open tristan-k opened 3 years ago
Something like this?
shairport-sync:
image: mikebrady/shairport-sync
network_mode: host
volumes:
- ./volumes/shairport-sync/shairport-sync.conf:/etc/shairport-sync.conf
restart: unless-stopped
devices:
- "/dev/snd"
logging:
options:
max-size: "200k"
max-file: "10"
I've got a problem with running this with docker-compose. Here's my YAML:
mpk@raspberrypi:~/srv/shairport-sync $ cat docker-compose.yml
version: "3.5"
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.16.57.0/24
services:
shairport-sync:
image: mikebrady/shairport-sync:latest
container_name: shairport-sync
network_mode: host
user: 1001:1001
devices:
- /dev/snd:/dev/snd
volumes:
- /home/mpk/srv/shairport-sync/shairport-sync.conf:/etc/shairport-sync.conf
restart: unless-stopped
I need the networks
part to be able to run it with VPN on.
Unfortunately, unless I change user
to root
, I get these errors:
mpk@raspberrypi:~/srv/shairport-sync $ docker-compose up -d
Creating shairport-sync ... done
mpk@raspberrypi:~/srv/shairport-sync $ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e13c65a7026b mikebrady/shairport-sync:latest "/start.sh" 7 seconds ago Up 1 second shairport-sync
e70e6966812c jellyfin/jellyfin:10.7.6 "/jellyfin/jellyfin" 7 weeks ago Up 35 minutes jellyfin
mpk@raspberrypi:~/srv/shairport-sync $ docker logs e13c65a7026b --follow
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "avahi" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown group "netdev" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "shairport-sync" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "shairport-sync" in message bus configuration file
dbus-daemon[10]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "avahi" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown group "netdev" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus-daemon[9]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "avahi" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown group "netdev" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus-daemon[9]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "avahi" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown group "netdev" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus-daemon[9]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "avahi" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown group "netdev" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "shairport-sync" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "shairport-sync" in message bus configuration file
dbus-daemon[10]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "avahi" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown group "netdev" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "root" in message bus configuration file
dbus[9]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[9]: Unknown username "shairport-sync" in message bus configuration file
dbus-daemon[9]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "avahi" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown group "netdev" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "shairport-sync" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "root" in message bus configuration file
dbus[10]: Could not get password database information for UID of current process: User "???" unknown or no memory to allocate password entry
dbus[10]: Unknown username "shairport-sync" in message bus configuration file
dbus-daemon[10]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied
any ideas?
We are hoping to simplify the user situation to use root
only in the not-too-distant future.
I too am interested in a docker-compose.yml
file for this.
Can you provide a docker compose example for the
docker run
example? As a docker newbie I find it really difficult to translate some of the commands.