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)
- Console output prints double HOT 2
- API - Wrong status code is return when invalid boy in post request
- Failed to import the required Python library (ansible-pylibssh)
- API - Filter function is missing i getting keys
- Feature request
- UI - Link to documentation
- API/UI/Documentation - How to I specify the path to an inventory in a repository HOT 3
- Error on adding new ssh key to keystore: msg="illegal base64 data at input byte 49" HOT 2
- [Feature request] Use ssh forwarded agent connection to access target hosts HOT 1
- [Feature request] Choosing variables from pre-prepared ones
- [Feature Request] Possibility to remove 'Debug', 'Dry Run' and 'Diff' checkboxes as well as the 'Advanced' link for a Clean user experience HOT 1
- [Feature Request] Show playbook and Inventory from Local Path
- Unable to delete a copy of a template
- config interface option does not accept "lo" HOT 2
- SSH connecting with wrong username in 2.9.70 HOT 5
- Whats is the latest version? 2.9.70? HOT 2
- Issue with playbook and inventory execution exclusively via Ansible HOT 1
- Table Headers are different case in Dark Mode compared to Light Mode
- The task log is not displayed HOT 1
- Unable to run tasks with become=true [ Privilege output closed while waiting for password prompt ] 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 semaphore.