Comments (5)
So I used interactive registration shown in GitLab guidelines, which worked until recently when I discovered same problem again.
It appears that not only Docker has to be mounted, but although runner must be configured to use it.
Probably, docker socket mounting is not enough once you register more than one runner on same container/service/volume.
So to make it work, make sure that in runner's config.toml (can be found in volume's root), for all you runners volumes
property has docker socket:
# runners defintion
[[runners]]
volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
# other properties not mentioned here
P.S.: realized that with the help of Portainer, settled up after @tiangolo 's guide Thank You!
from dockerswarm.rocks.
It seems like your GitLab runner doesn't have access to Docker. Make sure you create it in a manager node and with the Docker sock volume mounted.
from dockerswarm.rocks.
Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.
from dockerswarm.rocks.
I have the same issue, with Docker socket being mounted.
That's how Binds
property of container looks like:
"Binds": [
"/var/run/docker.sock:/var/run/docker.sock",
"gitlab-runner:/etc/gitlab-runner"
],
update: I tried a bit different approach (follow instructions from here after creation of docker container for ci runner), but still have same issue.
Exact error from job logs:
$ docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
error during connect: Post http://docker:2375/v1.40/auth: dial tcp: lookup docker on 213.133.98.98:53: no such host
ERROR: Job failed: exit code 1
It could be worth noting, that I'm using the official GitLab website (not self-hosted).
And I found a few similar issues env vars display their values (not just name). IP was different too, and it seems to point at my hosting provider...
from dockerswarm.rocks.
That was my mistake - I didn't mount Docker socket.
from dockerswarm.rocks.
Related Issues (20)
- Swarmpit setup fails - http://db:5984 host unreachable HOT 4
- Service placement on different node makes it unreachable HOT 2
- Swarmpit on ARM HOT 1
- Let's encrypt issue HOT 2
- Setting up hostname didn't work
- 404 for grafana / prometheus requests HOT 2
- Traefik example and its labels HOT 1
- Suggestion: Start with simple stack to get Portainer running with Caddy HOT 2
- Traefik on 2 Manager Nodes HOT 4
- What are the things to look when traefik.<domain name> is not loading? HOT 2
- Any recommended FOSS projects for Docker Swarm Mode deployments? HOT 3
- Traefik : redirect all http to https HOT 4
- n/a
- nginx loadbalancer
- Custom SSL Certificate HOT 3
- [feature request] dark mode for dockerswarm.rocks HOT 1
- Traefik redundancy and DNS configuration HOT 3
- Feature Request: Explain the roles of Portainer and Swarmpit (better) HOT 1
- Is dockerswarm.rocks still maintained? HOT 14
- Everything depends on the first node despite being in swarm mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerswarm.rocks.