-
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DockerMachine Runner stuck (sudo: docker: command not found
)
#470
Comments
sudo: docker: command not found
)
I'm using
|
Following another proposal of
userdata_pre_install = <<EOT
echo "=========="
echo "userdata pre script"
cat /var/lib/cloud/instance/scripts/part-001
echo "=========="
cat > /etc/gitlab-runner/docker_rebuild.txt <<- EOF
runcmd:
- |
while sleep 1; do
if [ -e /etc/systemd/system/docker.service.d/10-machine.conf ]; then
sleep 15
systemctl restart docker
break
fi
done &"
EOF
echo "=========="
EOT
userdata_post_install = "echo 'userdata post install'"
docker_machine_options = [
"amazonec2-userdata=/etc/gitlab-runner/docker_rebuild.txt"
] Though this succeeds to run on the gitlab runner agent (the ec2 instance gets initiated), it did not resolve the issue. |
In another attempt, I reverted my changes regarding images & instance types to use version However, that gave the same issue: |
Will run a check later this week, sorry really busy. |
I had to change
into
as apparently putting the runners in the public_subnet caused them to have no (outbound) internet connection. Thus it could not actually install Docker. |
I'm on
4.41.1
but my runner gets stuck:I have the following variable definitions:
With following setup:
The logs (at loggroup
instance_id/messages
), shows (prefixed withgitlab-runner:
:And then shows (repeatedly):
The
/user-data
logs shows (amongst others):Note the
Docker installation not found
.Any ideas?
The text was updated successfully, but these errors were encountered: