mviereck / x11docker

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

Need some advice #195

Closed R3D9477 closed 4 years ago

R3D9477 commented 4 years ago

Hello.

I have some questions about working with x11docker's images and containers:

  1. Where I can watch downloaded containers through x11docker? Is there something like a docker ps -a ?
  2. Is it possible to run image which was downloded by docker?
  3. Is it possible to create custom image for x11docker? What may need for this (it should be able to run OpenGL/Vulkan application)? (I can't find answers to those questions on the wiki)

Thanks!

mviereck commented 4 years ago

Just some term clarification:

Where I can watch downloaded containers through x11docker? Is there something like a docker ps -a ?

x11docker uses Docker and its commands docker pull and docker run. x11docker images are not different from Docker images, it is entirely the same.

Is it possible to run image which was downloded by docker?

Yes.

Is it possible to create custom image for x11docker?

Yes. You can look at my repositories for some examples. Short example for a Dockerfile:

FROM debian:buster
RUN apt-get update
RUN apt-get install -y xterm
CMD xterm

Build:

docker build -t myxtermimage PATH/TO/DOCKERFILE

Run:

x11docker myxtermimage

You can look in image list:

docker images | grep xterm

You can look at containers while xterm is running:

docker ps 

What may need for this (it should be able to run OpenGL/Vulkan application)?

Probably it is enough to install the open source MESA drivers in image / in the Dockerfile and to run x11docker with option --gpu. Compare Dependencies in image for option --gpu.

RUN apt-get install -y mesa-utils mesa-utils-extra
R3D9477 commented 4 years ago

@mviereck Many thanks for help and detailed answer!