Trying to create customized archlinux iso (archiso, releng) I hit a lot of issues, most of them 'execv? failed, permission denied'.
Later on, just trying to run a systemd-nspawn container, again, execv permission. Boot fails.
Googling didn't get me very far, except to broaden the scope from systemd-nspawn to something more general. I try to run a binary (ls) from the container subtree. Permission denied. I md5sum container/.../ls and get the same md5 as the main linux install I'm running. I thought it could be the wrong architecture or a different binary. So if two binaries refuse to run .. maybe they're treated differently from the host OS. I then realize that my container and custom archiso were on a mounted drive.
mount | grep <mountpoint> -> mount .... (...,noexec, ...)
EUREKA.
udevil mounts this drive with a lot of protective flags. udevil unmount <mountpoint>; sudo mount <device> /mnt; <container>/ ... /ls works.
systemd-nspawn -b -D <container> works.
Thanks to #archlinux for nothing (beside rubber ducking ;)</container></container></device></mountpoint></mountpoint>
Affichage des articles dont le libellé est permission. Afficher tous les articles
Affichage des articles dont le libellé est permission. Afficher tous les articles
dimanche 1 mai 2016
vendredi 16 août 2013
ubuntu docker.io : docker.sock permission denied issue #163
If you experience this :
$ docker images
2013/08/16 19:05:13 dial unix /var/run/docker.sock: permission denied
Then just use this temporary fix (as suggested here https://github.com/progrium/dokku/issues/163):
$ sudo chmod 777 /var/run/docker.sock
and enjoy your containers again
$ docker images
REPOSITORY TAG ID CREATED SIZE
(empty list because I started from scratch again)
$ docker images
2013/08/16 19:05:13 dial unix /var/run/docker.sock: permission denied
Then just use this temporary fix (as suggested here https://github.com/progrium/dokku/issues/163):
$ sudo chmod 777 /var/run/docker.sock
and enjoy your containers again
$ docker images
REPOSITORY TAG ID CREATED SIZE
(empty list because I started from scratch again)
Inscription à :
Articles (Atom)