This config defines a development container for ESP32 development based on the official Espressif IDF docker image.
Note that the flash
and monitor
commands only work on Linux. Update the /dev/ttyUSB0 paths in
devcontainer.json to whatever the ESP32 ends up as on your machine.
A couple of notes for those running this on Ubuntu.
Don't use the default
docker-io
package from the Ubuntu repositories, it's missing the buildx plugin. Use the Docker.com install instructions: https://docs.docker.com/engine/install/ubuntu/.When starting the devcontainer make sure you have the device connected via
/dev/ttyUSB0
, or that/dev/ttyUSB0
exists.