Closed R3D9477 closed 4 years ago
Just some term clarification:
docker run IMAGENAME
you are starting a container from an image.docker run
you are starting a container. The container contains the image; but all changes are done in a separate layer and do not touch the image itself.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.
docker images
docker ps
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
@mviereck Many thanks for help and detailed answer!
Hello.
I have some questions about working with x11docker's images and containers:
docker ps -a
?Thanks!