Comments (11)
Are the containers properly linked?
The other thing is if the semaphore config uses the correct hostname as the container link defines them.
Eg if you do docker inspect <id>
, it should show that the containers link and share ports
from semaphore.
This is what inspect shows me for links. Only the semaphore container has links defined, as per the instructions.
$ sudo docker inspect -f "{{ .HostConfig.Links }}" semaphore
[/mongodb:/semaphore/mongo /redisio:/semaphore/redis]
sudo docker inspect -f "{{ .HostConfig.Links }}" mongodb
[]
[mick@mick-fedora semaphore]$ sudo docker inspect -f "{{ .HostConfig.Links }}" redisio
[]
For the Mongo container I see this:
"PortBindings": {
"27017/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "27017"
}
Which is making me think it is only listening on localhost but I don't know how to fix that. Do I need to add another link at run time and if so where?
from semaphore.
Hmm no i think docker does port forwarding.
Have you got a config file for semaphore?
from semaphore.
I am using whatever configs are within the repos. I simply cloned the repo and went through the Docker Quickstart without making any changes to configs. Not sure what you are looking for but it will be identical to what is in this repository.
from semaphore.
@matejkramny Thanks for looking into this. This log from semaphore shows that it is trying to connect to the IP address of the Mongo container:
$ sudo docker logs semaphore
app.js:110 Semaphore listening on port 80
Mongodb Connection Error: { [MongoError: connect EHOSTUNREACH 172.17.0.25:27017]
name: 'MongoError',
message: 'connect EHOSTUNREACH 172.17.0.25:27017' }
and a docker inspect of mongodb shows that the IP address is correct.
"Gateway": "172.17.42.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "172.17.0.25",
I don't know enough about nodejs/mongo to troubleshoot this even if I attach a shell to the containers.
from semaphore.
I'll try the tutorial and let you know.
from semaphore.
Hey, Sorry I was a little busy yesterday. I'll have time today after work
Thanks
from semaphore.
Thanks @matejkramny I will check back later to see how it works out for you.
from semaphore.
I setup a brand new box (ubuntu 15.04 with docker) and copy-pasted all the steps in the "Docker quickstart" section and seems to work well.
Can you try:
docker run -it --rm --link mongodb:mongo castawaylabs/semaphore /bin/bash
Inside, you can ping mongo
hostname, and prod it for open ports. If that doesn't work, then its a fault in docker or your firewall because I think docker sets up iptables to do port forwarding
from semaphore.
Thanks @matejkramny I think this is a bug in docker on Fedora 22. I found some posts on this elsewhere. You can close this issue now. I will get this running on a Ubuntu system.
from semaphore.
Closing upon request
from semaphore.
Related Issues (20)
- [Feature Request] PWA (Progressive web app) support
- Error when configuring GitHub as OIDC provider
- login issues when changinf the web-host
- v2.9.56 breaks oidc auth with keycloak HOT 38
- Add User to Multiple Projects HOT 3
- Task output reports Slack alert succesful even when it fails
- Author details missing in Slack alert
- Login (LDAP) throws error (panic - securecookie: hash key is not set) after upgrade from v2.9.45 to v2.9.58 HOT 2
- v2.9.64 bust semaphore runner HOT 1
- "Failed to import the required Python library (PyVmomi) on XXXXXXX Python /usr/bin/python3 HOT 1
- Only one runner is getting tasks, other runners won't get any HOT 1
- Does LDAP Integration Support Encryption HOT 2
- winrm ansible_user always root
- Users page does not updated correctly HOT 2
- Error access denied when using persistant volumes in docker HOT 1
- sudo: semaphore : command not found HOT 5
- [Docker/K8s] Openid/OIDC configuration HOT 1
- Github OIDC config error claim 'email' missing or has bad format
- Variable nocolor is ignored
- Integration Extract JSON key value pair HOT 1
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 semaphore.