Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ if [ "${NIX_SH_CONTAINER:-}" = "1" ]; then

# Start the Docker daemon, storing its data in the crossplane-cli-nix volume
# for persistence across container runs. This gives us a consistent Docker
# environment with cached images (e.g., kind node images).
dockerd --data-root=/nix/docker >/tmp/dockerd.log 2>&1 &
# environment with cached images (e.g., kind node images). Run it from / so
# its children don't use the bind-mounted checkout as their working
# directory; a crashing child would otherwise leave a core file there.
(cd / && exec dockerd --data-root=/nix/docker >/tmp/dockerd.log 2>&1) &

attempts=0
until docker info >/dev/null 2>&1; do
Expand Down
Loading