Skip to content

docker(install): fallback to journalctl to print docker daemon logs#201

Merged
crazy-max merged 4 commits into
docker:mainfrom
crazy-max:colima-update
Nov 16, 2023
Merged

docker(install): fallback to journalctl to print docker daemon logs#201
crazy-max merged 4 commits into
docker:mainfrom
crazy-max:colima-update

Conversation

@crazy-max
Copy link
Copy Markdown
Member

related to docker/setup-docker-action#45

colima only supports Ubuntu image since 0.6.0 which runs docker as systemd unit: https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#version-v060-and-newer

Version v0.6.0 and newer

Colima uses Ubuntu as the underlying image. Other distros are not supported.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
colima only supports Ubuntu image since 0.6.0 which
runs docker as systemd unit.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
Copy link
Copy Markdown
Member Author

Provisioning on Ubuntu does not seem to work anymore to install a custom docker release as colima overrides packages installation on startup now 😕: https://github.com/docker/actions-toolkit/actions/runs/6889709856/job/18741269217#step:5:531

  time="2023-11-16T11:01:55Z" level=trace msg="cmd [\"lima\" \"sh\" \"-c\" \"grep \\\"^UBUNTU_CODENAME\\\" /etc/os-release | cut -d= -f2\"]"
  time="2023-11-16T11:01:56Z" level=trace msg="cmd [\"lima\" \"sh\" \"-c\" \"sudo apt-get install --reinstall --print-uris -qq \\\"docker.io\\\" | cut -d\\\"'\\\" -f2\"]"

...


Selecting previously unselected package docker.io.
Preparing to unpack .../docker.io_24.0.5-0ubuntu1_amd64.deb ...
Unpacking docker.io (24.0.5-0ubuntu1) ...

Looks hardcoded: https://github.com/abiosoft/colima/blob/565ddd0c15a3068d0f11cb301691e3540f9b5596/environment/vm/lima/dependencies.go#L18

Maybe we could set a custom lima profile I'm not sure.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant