Skip to content

how to run system updates (apt-get) on host and minimize impact on services/containers? #85

@gregsadetsky

Description

@gregsadetsky

the daemon should start the containers with the option that makes them not restart while apt-get is happening

also: how to run apt-get upgrade on the host? that should be possible with the ... ns... (namespace)....? option?

docker run --rm \
  --privileged \
  --pid=host \
  alpine:latest \
  nsenter -t 1 -m -u -n -i -- \
  apt-get update && apt-get upgrade -y

and/or

docker run --rm -it --privileged --pid=host alpine:latest \
  nsenter -t 1 -m -u -n -i \
  systemd-run --unit=host-update --description="Docker-safe Upgrade" \
  --no-block \
  bash -c "apt-get update && apt-get upgrade -y"

also

apt-mark hold docker-ce docker-ce-cli containerd.io

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions