Public Repository

Last pushed: 2 years ago
Short Description
Arduino basic install
Full Description

This image contains the base ubuntu image with the arduino tools installed as per this command:

sudo apt-get update && sudo apt-get install arduino arduino-core


To launch the container (from a linux host) use the following:

docker run -it --rm --privileged -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/ttyACM0:/dev/ttyACM0 davechick/arduino-dev arduino

Which breaks down as:

  • docker - The docker application
  • run - The command to run this image
  • -it - Run as interactive with a pseudo TTY
  • --rm - Remove the container after session is over
  • --privileged - Give the container additional privileges (required for serial port access)
  • -e DISPLAY - Map the container $DISPLAY environment variable to match the host
  • -v /tmp/.X11-unix:/tmp/.X11-unix - Map the X11 temp folder in the container to the host (allows the GUI to use the host X11 server)
  • -v /dev/ttyACM0:/dev/ttyACM0 - Map the container serial port to the host serial port (check dmesg to ensure this is correct when plugging
    in the arduino)
  • davechick/arduino-dev - The image name
  • arduino - Launch the arduino application. This is optional, if omitted a shell prompt will be returned
Docker Pull Command