We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d0efa5 commit a582968Copy full SHA for a582968
1 file changed
.github/actions/setup-containerd/action.yml
@@ -110,9 +110,9 @@ runs:
110
111
echo "Starting containerd..."
112
113
- # Start containerd in background with logging
114
- sudo containerd > /var/log/containerd/containerd.log 2>&1 &
115
- CONTAINERD_PID=$!
+ # Start containerd in background with logging and save its PID
+ sudo sh -c 'nohup containerd > /var/log/containerd/containerd.log 2>&1 & echo $! > /var/run/containerd.pid'
+ CONTAINERD_PID=$(sudo cat /var/run/containerd.pid)
116
117
echo "Containerd started with PID: $CONTAINERD_PID"
118
0 commit comments