Failed to mount tmpfs at /run: Operation not permitted

raspberrypi3

#1

I’m having this issue when trying to mount a named device on a multicontainer docker-compose

mount: only root can use "--move" option
umount: /dev: umount failed: Operation not permitted
mount: only root can use "--move" option
ln: cannot remove ‘/dev/ptmx’: Permission denied
mount: only root can use "--types" option
Systemd init system enabled.
/usr/bin/entry.sh: line 63: /etc/docker.env: Permission denied
/usr/bin/entry.sh: line 70: /etc/resinApp.sh: Permission denied
/usr/bin/entry.sh: line 71: /etc/resinApp.sh: Permission denied
chmod: cannot access ‘/etc/resinApp.sh’: Nosuch file or directory
mkdir: cannot create directory ‘/etc/systemd/system/launch.service.d’: Permission denied
/usr/bin/entry.sh: line 75: /etc/systemd/system/launch.service.d/override.conf: No such file or directory
Failed to mount tmpfs at /run: Operation not permitted

Thanks


#4

Hi @jstnn
How are you mounting your named device? Could you post your docker-compose.yml?


#5

Sure. My docker-compose looks like this:

version: '2'
networks: {}
volumes:
  music:
  playlists:
  database:
services:
  icecast:
	build: ./icecast
	expose:
	  - "8000"
	  - "80"
	ports:
	  - "8000:8000"
	  - "80:80"
	network_mode: bridge
	restart: always
	privileged: true    
  mpd:   
	build: ./mpd
	expose:
	  - "6600"
	ports:
	  - "6600:6600"
	depends_on:
	  - icecast
	volumes:
	  - music:/var/lib/mpd/music
	  - playlists:/var/lib/mpd/playlists
	  - database:/var/lib/mpd/database
	network_mode: bridge
	restart: always
	privileged: true

#12

The compose file looks like it should work without issue, could you post the Dockerfile that is running the mount command?
Steps for a minimal reproduction of the issue would be perfect.


#13

This issue has gone quiet, and we’ve no ability to dig into this without more details from the dockerfile.