Hola Leo, > Per exemple, si executo: > > $ docker run --net=host --user $(id -u) --env DISPLAY=$DISPLAY \ > -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" \ > --name graspit_f graspit graspit_simulator > > Sempre acabo amb: > > X11 connection rejected because of wrong authentication. > cannot connect to X server localhost:10.0 > > Malgrat que he fet un xhost +. > > No sé què faig malament.
A mi em diu que no troba graspit o que no tinc permís:
docker: Error response from daemon: pull access denied for
graspit, repository does not exist or may require 'docker
login': denied: requested access to the resource is denied.
Algun cop he provat d'executar un contenidor de chromium i em
donva algun error similar. Ara he provat una cosa més senzilla
que m'ha funcionat:
1. En un terminal executo:
docker run --net=host --user $(id -u) --env DISPLAY=$DISPLAY
-v "/tmp/.X11-unix:/tmp/.X11-unix:rw" -it
--name xclock debian:buster-slim
2. En un altre terminal entro com a root i instal·lo xclock:
docker exec -u 0 -it xclock /bin/bash
apt update
apt install x11-apps
3. Me'n torno al primer terminal i executo xclock amb èxit,
sense que em calgui fer xhost.
Salut,
Alex
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Alex Muntada <[email protected]>
⢿⡄⠘⠷⠚⠋ Debian Developer 🍥 log.alexm.org
⠈⠳⣄⠀⠀⠀⠀
signature.asc
Description: PGP signature

