Hi,
I am using a resin OS dev version (I am using the docker in docker hack, so I am using the 2.0.6+rev3 version).
Following the steps in local-mode man:
- In order to use local mode on a device:
- The device must be running resinOS v2.0 or higher with supervisor v4.0 or higher.
- The device must be running a development variant of the OS. If you try to use a production variant, you will not be able to use local mode. The production devices have SSH and the Docker socket locked down, both of which are needed for the local mode feature.
- Local mode must be enabled through the dashboard. To use local mode on a development device, click on the small Actions dropdown at the top right of the device page and select Enable Local Mode.
The last point, as I could see, modifies the device variable RESIN_SUPERVISOR_LOCAL_MODE. However, when I disable the local mode (and RESIN_SUPERVISOR_LOCAL_MODE variable is set to 0), I can still use the local mode (resin local scan list the device, resin local ssh connects to the device, …).
I don’t know if it is a bug or if it is the expected behaviour, but reading the documentation (at lest for me) I expected to disable the local mode completely.