Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balena push do not restart services #52

Open
yelodevopsi opened this issue May 4, 2022 · 0 comments
Open

balena push do not restart services #52

yelodevopsi opened this issue May 4, 2022 · 0 comments

Comments

@yelodevopsi
Copy link

Bug:
When doing balena push <fleet> the services do not seem to restart and the Restart Services button has to be manually pressed.
Are there any dependencies in the used docker-compose.yml file below here that will affect how the services are restarted/pushed etc?

Running balenaOS 2.58.6+rev1 on Generic x86_64

Used docker-compose.yml

Changes from original in this repo:

  • network_mode: bridge => host
  • Commented out: dns:
version: '2.2'

services:
  os:
    build:
      context: .
      dockerfile: Dockerfile.template
      args:
        OS_VERSION: ${OS_VERSION:-2.83.18_rev1}
        DEVICE_TYPE: ${DEVICE_TYPE:-genericx86-64-ext}
    privileged: true
    restart: unless-stopped
    stop_signal: SIGRTMIN+3
    stop_grace_period: 30s
    volumes:
      - /lib/modules:/lib/modules:ro
      - ${CONFIG_JSON:-./config.json}:/var/local/config.json
      - boot:/mnt/boot
      - data:/mnt/data
      - state:/mnt/state
    tmpfs:
      - /run
      - /run/lock
      - /tmp
      - /var/lib/journal
      - /sys/fs/cgroup/systemd
    # this is required for the dns option to have any effect
    # see https://github.com/docker/compose/issues/2847#issuecomment-658999887
    network_mode: host
    #dns:
    #  - 127.0.0.2
    tty: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant