-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow passing --enable-docker-bridge
to amazon-eks-ami
bootstrap
#942
Comments
I believe this will be doable by allowing to customise So you would be looking to do something like this: nodeGroups:
- name: ng1-with-docker-in-docker
extraDockerConfig:
bridge: docker0
live-restore: false To be clear, we don't use # Replace with custom docker config contents.
if [[ -n "$DOCKER_CONFIG_JSON" ]]; then
echo "$DOCKER_CONFIG_JSON" > /etc/docker/daemon.json
systemctl restart docker
fi
if [[ "$ENABLE_DOCKER_BRIDGE" = "true" ]]; then
# Enabling the docker bridge network. We have to disable live-restore as it
# prevents docker from recreating the default bridge network on restart
echo "$(jq '.bridge="docker0" | ."live-restore"=false' /etc/docker/daemon.json)" > /etc/docker/daemon.json
systemctl restart docker
fi I think we will want to have the config itself unse |
Run in the same problem using eksctl to setup a binder / jupyterhub setup. The built in docke-on-docker build process fails due to dns errors. Is there a workaround to pass --enable-docker-bridge to eksctl commands? |
Looks like it's possible. See #522 |
@SkySonR #522 Looks to be for both. Investigating on how to use... |
I'm having the same DNS problem. @SkySonR do you know how can we pass the argument for that PR you mention? |
Same here. Is there a way to achieve this in the meantime that this is developed properly? Thank you for the work and great project! |
Using a workaround described at the Jupyter Forum I was able to fix the dns errors.
Gist: aws_eks_config.yml |
@tobemedia Your solution worked! I was trying to build docker container using buildkite agent inside our Kubernetes cluster and it was throwing this error! |
I'm closing this given the workaround from @tobemedia above. We are unlikely to implement any other features for this in eksctl. |
Why not implement something clean like |
Why do you want this feature?
A number of common Kubernetes use cases, including CI and machine learning experiment management, require building docker images on Kubernetes (more generally known as "docker-on-docker"). Amazon recently disabled the docker bridge on the
amazon-eks-ami
family of images, breaking this capability (see Docker in Docker no longer works without docker0 bridge). Even more recently, Amazon added a--enable-docker-bridge
switch to the AMI bootstrap script to reenable the bridge.What feature/behavior/change do you want?
Allow configuring an eksctl nodegroup for "docker-on-docker" use. If a nodegroup is configured in this way, eksctl will pass the
--enable-docker-bridge
to the AMI bootstrap.The text was updated successfully, but these errors were encountered: