couchbase / couchbase/docker

Couchbase Container's non-default port: Unusual behavior

Open
#139 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
155
Forks
154
Avg merge
10h 45m
Merged PRs (30d)
2

Description

We are observing unusual behavior related to Docker Container’s ports. Wanted to check if anyone has any knowledge about this:

Couchbase default ports:
 Web: 8091
 CBQ (Query Utility): 8093 and 8091

Assume we have 2 Couchbase containers on a host X named Cont1 and Cont2. Following are the Host:Container port mappings:
Cont1 -p 8091-8096:8091-8096 -p 11210-11211:11210-11211 [ Default ports ]
Cont2 -p 7091-7096:8091-8096 -p 17210-17211:11210-11211 [ Web port 7091 and CBQ ports 7093 and 7091 ]

Cont1 can be accessed via web on 8091 and via CBQ on 8091 and 8093 ports – Expected/Normal behaviour
Cont2 can be accessed via web on 7091 and via CBQ on 7093 port only, but if we use port 7091 then we get connected to Cont1 – Unexpected/Abnormal behaviour.

To test further, out of 2 containers if we stopped Cont1 (default host ports’ container), then usage of port 7091 with CBQ fails to connect to either of the containers!

We are unable to understand whether this is a bug or some port mapping issue? Any kind of explanation/logic would be helpful.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are mentioned. Start by reproducing the two-container port mappings described in the issue, including stopping Cont1, then determine whether the connection behavior comes from Docker port forwarding or Couchbase's ports. Done means documenting the cause and confirming the expected behavior for the non-default mappings.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.