# \#local-mode

**URL:** https://forums.balena.io/tag/local-mode/13.md

[Latest](https://forums.balena.io/latest.md) · [Categories](https://forums.balena.io/categories.md) · [Tags](https://forums.balena.io/tags.md)

---

## [Local build working with Docker but not Balena](https://forums.balena.io/t/local-build-working-with-docker-but-not-balena/374679)

<div class="topic-metadata">

**Author:** [@benfrancis](https://forums.balena.io/u/benfrancis)\
**Replies:** 11\
**Last updated:** [September 15, 2025, 5:15pm UTC](https://forums.balena.io/t/local-build-working-with-docker-but-not-balena/374679 "2025-09-15T17:15:50Z")

</div>

Hi, I’m experimenting with porting WebThings Gateway to balenaOS. I have a working docker-compose.yml that points to a pre-built image on Docker Hub which I have successfully deployed to a device, but am trying to crea…

---

## ["Local/Offline" Container/application update support?](https://forums.balena.io/t/local-offline-container-application-update-support/370525)

<div class="topic-metadata">

**Author:** [@Kai](https://forums.balena.io/u/Kai)\
**Replies:** 4\
**Last updated:** [April 3, 2025, 12:56pm UTC](https://forums.balena.io/t/local-offline-container-application-update-support/370525 "2025-04-03T12:56:17Z")

</div>

Hi all, we have a relatively special use case, where we have want to deploy devices, that are mainly controlled by a Smartphone application via Bluetooth/Wifi (p2p), so we don’t really want to rely on the device having …

---

## [LocalMode development global environment variables](https://forums.balena.io/t/localmode-development-global-environment-variables/372555)

<div class="topic-metadata">

**Author:** [@bartjanszoon](https://forums.balena.io/u/bartjanszoon)\
**Replies:** 3\
**Last updated:** [December 3, 2024, 10:00am UTC](https://forums.balena.io/t/localmode-development-global-environment-variables/372555 "2024-12-03T10:00:03Z")

</div>

Hi, I know that in local mode the environment variables need to be set in the docker-compose file, but I wonder if there’s a way to define environment variables that are common for all services, while services also can …

---

## [How to use a mixture of private and public blocks in local mode](https://forums.balena.io/t/how-to-use-a-mixture-of-private-and-public-blocks-in-local-mode/369159)

<div class="topic-metadata">

**Author:** [@sgvandijk](https://forums.balena.io/u/sgvandijk)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 8:35am UTC](https://forums.balena.io/t/how-to-use-a-mixture-of-private-and-public-blocks-in-local-mode/369159 "2023-10-19T08:35:51Z")

</div>

I am working with a setup that uses multiple blocks in a single docker-compose.yml file. Some are public ones, and some are private ones. If I balena push to a fleet there is no issue: the build succeeds and all blocks …

---

## [Scanning development OS shows production variant (Cannot push locally)](https://forums.balena.io/t/scanning-development-os-shows-production-variant-cannot-push-locally/351104)

<div class="topic-metadata">

**Author:** [@le13francois](https://forums.balena.io/u/le13francois)\
**Replies:** 14\
**Last updated:** [March 31, 2022, 6:17pm UTC](https://forums.balena.io/t/scanning-development-os-shows-production-variant-cannot-push-locally/351104 "2022-03-31T18:17:09Z")

</div>

Flashed SD card with development OS variant for jetson xavier nx devkit. (balena-cloud-FLEETNAME-jetson-xavier-nx-devkit-2.82.11+rev8-dev-v12.9.3.img) Scanning the network, it shows the production variant: Scanning for…

---

## [Pushing to local from Mac doesn't work, but works on Linux](https://forums.balena.io/t/pushing-to-local-from-mac-doesnt-work-but-works-on-linux/354764)

<div class="topic-metadata">

**Author:** [@mamoen](https://forums.balena.io/u/mamoen)\
**Replies:** 1\
**Last updated:** [March 22, 2022, 4:51pm UTC](https://forums.balena.io/t/pushing-to-local-from-mac-doesnt-work-but-works-on-linux/354764 "2022-03-22T16:51:39Z")

</div>

When I push to a device in local mode I can do it from my Linux pc just fine, it shows the build running and I can see the services come up on my Pi, but when I try to push exactly the same project from my Mac I just get …

---

## [SD Card Size Increasing with Local Building](https://forums.balena.io/t/sd-card-size-increasing-with-local-building/349617)

<div class="topic-metadata">

**Author:** [@WestCoastDaz](https://forums.balena.io/u/WestCoastDaz)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 10:31pm UTC](https://forums.balena.io/t/sd-card-size-increasing-with-local-building/349617 "2021-10-12T22:31:00Z")

</div>

I have been using building with local mode for several weeks now and I have noticed that my SD Card usage keeps increasing. It’s now at ~22GB of ~28GB. Is this normal? If not how should I clear the card?

---

## [Serial port on development balena](https://forums.balena.io/t/serial-port-on-development-balena/334194)

<div class="topic-metadata">

**Author:** [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Replies:** 2\
**Last updated:** [July 5, 2021, 3:39pm UTC](https://forums.balena.io/t/serial-port-on-development-balena/334194 "2021-07-05T15:39:49Z")

</div>

Short question, I am using balenaOS 2.75.0+rev1 (development image) on an RPi 4 in local development mode. I coupled a GPS module to the UART, as I wanted to try to implement a GPS NTP server with PPS. However, I did o…

---

## [Local Push Only 1 Service](https://forums.balena.io/t/local-push-only-1-service/323374)

<div class="topic-metadata">

**Author:** [@SpencerWF](https://forums.balena.io/u/SpencerWF)\
**Replies:** 1\
**Last updated:** [June 11, 2021, 11:07pm UTC](https://forums.balena.io/t/local-push-only-1-service/323374 "2021-06-11T23:07:36Z")

</div>

Hello, I’ve got a multi-container project, where I have one redis container which is pulled directly from docker, and one which we have built. I was wondering if there is anyway to skip/speed up the push for the redis …

---

## [Disable console over Serial in Dev on RPi3?](https://forums.balena.io/t/disable-console-over-serial-in-dev-on-rpi3/1412)

<div class="topic-metadata">

**Author:** [@jared](https://forums.balena.io/u/jared)\
**Replies:** 34\
**Last updated:** [June 9, 2021, 1:12pm UTC](https://forums.balena.io/t/disable-console-over-serial-in-dev-on-rpi3/1412 "2021-06-09T13:12:18Z")

</div>

I am working on a Raspberry Pi3 and using a serial connection over GPIOs 6, 8, and 10 to communicate with a hardware board using G-codes. In prod, this is working fine, but the dev OS seems to offer a console over these …

---

## [balena push / logs (local mode): multi-line prints are not shown](https://forums.balena.io/t/balena-push-logs-local-mode-multi-line-prints-are-not-shown/250083)

<div class="topic-metadata">

**Author:** [@edorgeville](https://forums.balena.io/u/edorgeville)\
**Replies:** 11\
**Last updated:** [April 14, 2021, 12:43pm UTC](https://forums.balena.io/t/balena-push-logs-local-mode-multi-line-prints-are-not-shown/250083 "2021-04-14T12:43:10Z")

</div>

Hi, I’ve been chasing this bug for quite a while now and finally found the culprit. It seems that, when using local mode, any multi-line prints to the console will not be sent back using either balena push or balena lo…

---

## [Balena push does not use cache](https://forums.balena.io/t/balena-push-does-not-use-cache/271223)

<div class="topic-metadata">

**Author:** [@tobyhijzen](https://forums.balena.io/u/tobyhijzen)\
**Replies:** 3\
**Last updated:** [March 18, 2021, 3:51pm UTC](https://forums.balena.io/t/balena-push-does-not-use-cache/271223 "2021-03-18T15:51:23Z")

</div>

Dear support, We are in the process of creating a release. However when pushing the release for testing to a device in local mode with 'balena push ’ one of the services is rebuild everytime even though nothing changes.…

---

## [Dropping device log due to failed parsing](https://forums.balena.io/t/dropping-device-log-due-to-failed-parsing/233961)

<div class="topic-metadata">

**Author:** [@ebradbury](https://forums.balena.io/u/ebradbury)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 2:05pm UTC](https://forums.balena.io/t/dropping-device-log-due-to-failed-parsing/233961 "2021-02-22T14:05:34Z")

</div>

Hey folks, I’m developing an app via local-mode / livepush with --debug. I often see this message in place of missing lines of my logs: \[Debug\] Dropping device log due to failed parsing: SyntaxError: Unexpected end …

---

## [IPsec vpn server only works with local mode enabled, but not with local mode disabled (hwdsl2)](https://forums.balena.io/t/ipsec-vpn-server-only-works-with-local-mode-enabled-but-not-with-local-mode-disabled-hwdsl2/230995)

<div class="topic-metadata">

**Author:** [@jannis](https://forums.balena.io/u/jannis)\
**Replies:** 3\
**Last updated:** [January 8, 2021, 6:13pm UTC](https://forums.balena.io/t/ipsec-vpn-server-only-works-with-local-mode-enabled-but-not-with-local-mode-disabled-hwdsl2/230995 "2021-01-08T18:13:25Z")

</div>

Howdy, I’m running an IPsec VPN server on a Raspberry Pi 4 using the hwdsl2/ipsec-vpn-server image. It works perfectly fine with the device in local mode, however, as soon as I disable local mode, I get: pluto\[590\]: AB…

---

## [How to log from client.js](https://forums.balena.io/t/how-to-log-from-client-js/201104)

<div class="topic-metadata">

**Author:** [@leon22](https://forums.balena.io/u/leon22)\
**Replies:** 1\
**Last updated:** [October 20, 2020, 6:00am UTC](https://forums.balena.io/t/how-to-log-from-client-js/201104 "2020-10-20T06:00:23Z")

</div>

Hi! I try to change some things in balena-cam service and therefore I work in local mode. I can push with sudo balena push IP and even the service is running (can see the cam output in browser) but no logging messages…

---

## [Balena local push fails with unknown error 'esparse'](https://forums.balena.io/t/balena-local-push-fails-with-unknown-error-esparse/126174)

<div class="topic-metadata">

**Author:** [@jgentes](https://forums.balena.io/u/jgentes)\
**Replies:** 18\
**Last updated:** [June 9, 2020, 7:49am UTC](https://forums.balena.io/t/balena-local-push-fails-with-unknown-error-esparse/126174 "2020-06-09T07:49:18Z")

</div>

No additional logs when running with DEBUG=1. I can push to the app in balena cloud no problem, but local push fails: PS C:\\dev\> balena scan Reporting scan results - host: b2b1217.local address: 192.1…

---

## [Hybrid cloud + local development workflow](https://forums.balena.io/t/hybrid-cloud-local-development-workflow/113988)

<div class="topic-metadata">

**Author:** [@ductape](https://forums.balena.io/u/ductape)\
**Replies:** 14\
**Last updated:** [May 21, 2020, 2:24pm UTC](https://forums.balena.io/t/hybrid-cloud-local-development-workflow/113988 "2020-05-21T14:24:13Z")

</div>

I’m not quite sure if this is a feature request or a support issue requesting help with a better workflow. When building a Balena project on Raspberry Pi Zero W with the application in Python. Local mode takes FOREVER to…

---

## [How to get logs in local mode](https://forums.balena.io/t/how-to-get-logs-in-local-mode/35631)

<div class="topic-metadata">

**Author:** [@alexb](https://forums.balena.io/u/alexb)\
**Replies:** 2\
**Last updated:** [October 7, 2019, 7:24pm UTC](https://forums.balena.io/t/how-to-get-logs-in-local-mode/35631 "2019-10-07T19:24:54Z")

</div>

I am trying to develop a Node application running on Raspberry pi 3, in development and local mode. Since running in local mode does not stream any logs to the balena dashboard, how can I access the logs?

---

## [Unable to push to local device using local base image](https://forums.balena.io/t/unable-to-push-to-local-device-using-local-base-image/5036)

<div class="topic-metadata">

**Author:** [@eczajkowski](https://forums.balena.io/u/eczajkowski)\
**Replies:** 7\
**Last updated:** [July 29, 2019, 11:24am UTC](https://forums.balena.io/t/unable-to-push-to-local-device-using-local-base-image/5036 "2019-07-29T11:24:21Z")

</div>

I am trying to push an app that uses a custom base image to a local device. # Dockerfile FROM sswm\_main The base image sswm\_main is local to my system: $ docker images REPOSITORY TAG IMAGE ID CREA…

---

## [Local mode environment variables](https://forums.balena.io/t/local-mode-environment-variables/17500)

<div class="topic-metadata">

**Author:** [@eczajkowski](https://forums.balena.io/u/eczajkowski)\
**Replies:** 12\
**Last updated:** [July 15, 2019, 10:29am UTC](https://forums.balena.io/t/local-mode-environment-variables/17500 "2019-07-15T10:29:22Z")

</div>

For Local Mode, is there an easy way to leverage environment variables? If I am not mistaken, you previously were able to use .balena-sync.yml, a config file with env vars, with balena local push. Has that gone away? Is…

---

## [Troubleshooting Local Mode - Balena CLI Logs](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479)

<div class="topic-metadata">

**Author:** [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Replies:** 28\
**Last updated:** [July 11, 2019, 8:44pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479 "2019-07-11T20:44:19Z")

</div>

I cannot connect to my Beaglebone Green device to retrieve logs. The device is configured for Local Mode (via BalenaCloud) and I’m using the Balena CLI. e.g. see attached jpeg of logs command I have a BalenaCLoud sta…

---

## [Trouble pushing container](https://forums.balena.io/t/trouble-pushing-container/12639)

<div class="topic-metadata">

**Author:** [@sabtt](https://forums.balena.io/u/sabtt)\
**Replies:** 8\
**Last updated:** [May 31, 2019, 1:24pm UTC](https://forums.balena.io/t/trouble-pushing-container/12639 "2019-05-31T13:24:37Z")

</div>

I’m having trouble pushing a container to my raspberry pi 3. I managed to connect the pi to the wifi (WPA Enterprise) and to ping it from my personal computer. However, it doesn’t show up on the balena dashboard or when…

---

## [Running out of memory during build via balena local push](https://forums.balena.io/t/running-out-of-memory-during-build-via-balena-local-push/8555)

<div class="topic-metadata">

**Author:** [@wlisac](https://forums.balena.io/u/wlisac)\
**Replies:** 6\
**Last updated:** [May 16, 2019, 12:37am UTC](https://forums.balena.io/t/running-out-of-memory-during-build-via-balena-local-push/8555 "2019-05-16T00:37:36Z")

</div>

I’m running out of memory while performing a build on a device in local mode via: balena push \<device-ip\> The build hangs indefinitely when it runs out of memory. I’m wonder if there is a way to use a swapfile during …

---

## [Cloud build fails, but local device build works on Raspberry Pi Zero](https://forums.balena.io/t/cloud-build-fails-but-local-device-build-works-on-raspberry-pi-zero/4994)

<div class="topic-metadata">

**Author:** [@wlisac](https://forums.balena.io/u/wlisac)\
**Replies:** 14\
**Last updated:** [April 25, 2019, 7:11pm UTC](https://forums.balena.io/t/cloud-build-fails-but-local-device-build-works-on-raspberry-pi-zero/4994 "2019-04-25T19:11:02Z")

</div>

I have an application on balenaClould that targets the Raspberry Pi Zero. My dockerfile downloads and runs a prebuilt binary (of Swift and the Swift Package Manager) that was built for the Raspberry Pi Zero with Raspbia…

---

## [Cannot sync environment variable in local mode](https://forums.balena.io/t/cannot-sync-environment-variable-in-local-mode/3235)

<div class="topic-metadata">

**Author:** [@molusc](https://forums.balena.io/u/molusc)\
**Replies:** 1\
**Last updated:** [May 31, 2018, 8:30am UTC](https://forums.balena.io/t/cannot-sync-environment-variable-in-local-mode/3235 "2018-05-31T08:30:19Z")

</div>

I’m trying to work in local mode but I can’t figure out how to set environment variables. I know they can be added manually to .resin-sync.yml but I can’t find any documentation about the correct format to use. I’ve tr…

---

## [Disable local mode in resin OS dev version](https://forums.balena.io/t/disable-local-mode-in-resin-os-dev-version/2652)

<div class="topic-metadata">

**Author:** [@jcozar](https://forums.balena.io/u/jcozar)\
**Replies:** 4\
**Last updated:** [March 10, 2018, 3:49pm UTC](https://forums.balena.io/t/disable-local-mode-in-resin-os-dev-version/2652 "2018-03-10T15:49:30Z")

</div>

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 r…

---

## [Push locally built docker images using resin local?](https://forums.balena.io/t/push-locally-built-docker-images-using-resin-local/2508)

<div class="topic-metadata">

**Author:** [@murtis](https://forums.balena.io/u/murtis)\
**Replies:** 1\
**Last updated:** [February 5, 2018, 11:33am UTC](https://forums.balena.io/t/push-locally-built-docker-images-using-resin-local/2508 "2018-02-05T11:33:38Z")

</div>

I have a workflow that involves locally built docker images, and I use resin deploy FirstApp FirstApp:v0.1 to deploy my locally modified docker image. This works fine for updating my devices, but it takes too long for r…

---

## [Issues with building dockerfile in local mode](https://forums.balena.io/t/issues-with-building-dockerfile-in-local-mode/2374)

<div class="topic-metadata">

**Author:** [@efisher92](https://forums.balena.io/u/efisher92)\
**Replies:** 2\
**Last updated:** [January 9, 2018, 3:46pm UTC](https://forums.balena.io/t/issues-with-building-dockerfile-in-local-mode/2374 "2018-01-09T15:46:13Z")

</div>

Hey, I’m currently trying to get local mode working for my development device. I’m running into issues with the local push command. I don’t see an easy way to specify which Dockerfile to use. Currently I’m duplicatin…

---

## [Resin local push keeps re-pulling base image](https://forums.balena.io/t/resin-local-push-keeps-re-pulling-base-image/759)

<div class="topic-metadata">

**Author:** [@KingJulien](https://forums.balena.io/u/KingJulien)\
**Replies:** 4\
**Last updated:** [April 17, 2017, 7:42pm UTC](https://forums.balena.io/t/resin-local-push-keeps-re-pulling-base-image/759 "2017-04-17T19:42:38Z")

</div>

I've been using resinos Resin OS 2.0.0-rc1.rev2 developer and every time that I do a resin local push -s . it re-pulls the image in the Dockerfile FROM line... \* Building.. - Stopping and Removing any previous 'hb' co…
