fix: add Docker daemon startup to run kaniko container (#212)
Kaniko itself doesn't need Docker, but we use 'docker run' to execute the kaniko container. The daemon only needs to run containers, not build images, so we use minimal flags (--iptables=false, --bridge=none, --storage-driver=vfs). Reviewed-on: graham/towerops-web#212
This commit is contained in:
parent
efc78c9185
commit
0865d59b23
1 changed files with 13 additions and 0 deletions
|
|
@ -90,6 +90,19 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0 # Need full history for git operations
|
||||
|
||||
- name: Start Docker daemon
|
||||
run: |
|
||||
# Start Docker daemon to run kaniko container
|
||||
if ! docker info > /dev/null 2>&1; then
|
||||
sudo dockerd \
|
||||
--iptables=false \
|
||||
--ip6tables=false \
|
||||
--bridge=none \
|
||||
--storage-driver=vfs &
|
||||
# Wait for Docker to be ready
|
||||
timeout 30 bash -c 'until docker info > /dev/null 2>&1; do sleep 1; done'
|
||||
fi
|
||||
|
||||
- name: Generate image tag
|
||||
id: tag
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue