Docker ARG vs ENV
https://vsupalov.com/docker-arg-vs-env/
Running GUI apps in docker
ROS GUI in docker: https://tuw-cpsg.github.io/tutorials/docker-ros/
ROS GUI with NVIDIA: https://github.com/dkarunakaran/rviz_docker, https://medium.com/intro-to-artificial-intelligence/rviz-on-docker-bdf4d0fca5b
rocker
A tool to run docker images with customized local support injected for things like nvidia support. And user id specific files for cleaner mounting file permissions.
Build arguments
example Dockerfile:
FROM busybox
ARG user
USER $user
# ...
A user builds this file by calling:
$ docker build --build-arg user=what_user .
Use an ARG in Dockerfile FROM for dynamic image specification
.dockerignore
Docker CLI will only look for .dockerignore file in the root directory of the context