This article shows in a simple way how to run several graphical applications from Docker containers.

The article is based on an article in English on the subject, which you can see at the following link (broken link).

The previous articles about Docker are:

  1. Installing Docker on Debian Jessie

  2. Using Docker on Debian Jessie (part 1)

  3. Using Docker on Debian Jessie (part 2)

  4. Creating a Docker image from a Dockerfile

  5. Starting Django using Docker

  6. Installing Gitlab with Docker

  7. Running microservices with docker using docker-compose

  8. Docker in Docker (DinD)

  9. Starting Django with docker using docker-compose with postgresql as a microservice.

  10. Importing a Docker container in Python.

  11. Sharing Docker images through tar files.

  12. Creating a private Docker image registry.

  13. Using Anaconda from a Docker container.

  14. Creating a Continuous Integration and Deployment environment with Docker for node.js.

  15. Using Jupyter Notebook from a Docker container.

  16. Running a doctest test with a Docker container.

  17. Running a unittest test in Python with a Docker container.

  18. Setting up a Platform as a Service (PaaS) with Dokku (docker).

  19. Using docker-machine.

  20. Provisioning a cluster with docker swarm and docker-machine.

  21. Installing Jenkins with Docker and creating a Jenkins Docker image

  22. Automating the build of Docker images with github.

  23. Creating a Docker image for MongoDB3.

  24. Creating a Docker container as a development environment for Sails.js.

Lynx: It is a console browser, widely used long ago. To run it with Docker, use the following command:

docker run -it --name lynx1

This runs the application from a container, as the following figure shows:

You can visit the container's repository on Docker hub and see the repository's Dockerfile at the following link:

# Run Lynx in a conatiner 
#
# docker run --rm -it \
# --name lynx \
# jess/lynx github.com/jfrazelle
#
FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com>

RUN apt-get update && apt-get install -y \
 lynx \
 --no-install-recommends \
 && rm -rf /var/lib/apt/lists/*

ENTRYPOINT [ "lynx" ]

The link I gave at the beginning of the article lists other desktop applications that can be run, and looking at the Dockerfiles gives you an idea of how to create our own applications that run from a Docker container.

Make a donation! If you liked this article you can donate with Bitcoin (BTC) using the digital wallet of your choice to the following address: 17MtNybhdkA9GV3UNS6BTwPcuhjXoPrSzV

Or by scanning the QR code from your wallet:

17MtNybhdkA9GV3UNS6BTwPcuhjXoPrSzV