mviereck / x11docker

Run GUI applications and desktops in docker and podman containers. Focus on security.
MIT License
5.66k stars 377 forks source link

x11docker ERROR: Image xx:xx not found locally (with docker engine) #521

Closed ggio closed 10 months ago

ggio commented 10 months ago

Hi! I'm getting this exact same error on Fedora 39 ("Image *** not found locally."), although I don't have the Docker Desktops installed. I've tried running it rootful and rootless, without success. What am I doing wrong?

This error was discussed in #509 #468, but they doesn't appear to be the same situation.

Steps to reproduce:

docker pull jess/vlc

Using default tag: latest
latest: Pulling from jess/vlc
f03b40093957: Pull complete 
e0bf5c57ef3a: Pull complete 
6607903cb14f: Pull complete 
Digest: sha256:cc3895c0199313bbd6bb2ba492fdf5fc33e30214cca1d6dadba0e23f388d7dfa
Status: Downloaded newer image for jess/vlc:latest
docker.io/jess/vlc:latest

x11docker --pulseaudio --share=$HOME jess/vlc

x11docker WARNING: User gregorio is member of group docker.
  That allows unprivileged processes on host to gain root privileges.

x11docker note: Using X server option --nxagent

x11docker note: A few applications do not work well with --nxagent.
  In that case, you can try to fix the issue with option --composite
  or try another X server option like --xpra (seamless) or --xephyr (windowed).

x11docker note: Option --network=none is set to disable network access.
  If you need network and internet access, set option -I, --network [=NET].

x11docker note: Option --pulseaudio: pactl not found.
  Is pulseaudio installed and running on your host system?
  Fallback: Disabling option --pulseaudio.
  You can try option --alsa instead.

x11docker ERROR: Image jess/vlc not found locally.
  Please pull or build image first. (Backend podman, rootless yes)

  Type 'x11docker --help' for usage information
  Debug options: '--verbose' (full log) or '--debug' (log excerpt).
  Logfile will be: /home/gregorio/.cache/x11docker/x11docker.log
  Please report issues at https://github.com/mviereck/x11docker

I've installed docker using the rpm repositories.

docker info gives me this:

Client: Docker Engine - Community
 Version:    24.0.7
 Context:    rootless
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 4
  Running: 0
  Paused: 0
  Stopped: 4
 Images: 3
 Server Version: 24.0.7
 Storage Driver: fuse-overlayfs
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dd1e886e55dd695541fdcd67420c2888645a495
 runc version: v1.1.10-0-g18a0cb0
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  rootless
  cgroupns
 Kernel Version: 6.6.9-200.fc39.x86_64
 Operating System: Fedora Linux 39 (Workstation Edition)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.628GiB
 Name: fedora
 ID: d11795ac-79fe-4831-b1ab-ac6adc737931
 Docker Root Dir: /home/gregorio/.local/share/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No cpuset support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

I've installed x11docker via dnf.

echuber2 commented 10 months ago

I see this in your log: (Backend podman, rootless yes) It sounds like it's using Podman by default for you, not Docker. Try adding --backend=docker, or pull the image with podman first instead.

ggio commented 10 months ago

That's it! Now it works, thx!

Setting a default preset for all sessions with --backend=docker also works, without the need to add it every time.