I have created the simpliest (minimal working example) Dockerfile
to run graphical application on my Ubuntu 16.04 LTS host system with 19.10 insider container:
mkdir ~/docker-xclock
cat > ~/docker-xclock/Dockerfile << EOF
FROM ubuntu:19.10
RUN apt-get update
RUN apt-get install -y x11-apps
CMD xclock
EOF
Then created container with
docker build -t ubuntu:xclock ~/docker-xclock
When I try to run this container it shows the error about display:
$ docker run ubuntu:xclock Error: Can't open display:
What is wrong?