Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Scale docker compose is causing Port Conflicts #50

Closed
srirammageswaran opened this issue Mar 26, 2016 · 1 comment
Closed

Scale docker compose is causing Port Conflicts #50

srirammageswaran opened this issue Mar 26, 2016 · 1 comment
Assignees

Comments

@srirammageswaran
Copy link

Hi ,

Scaling docker container in docker compose having a port mapping is causing a port already in use error.

Error below docker-compose.exe scale mywildfly=2
The "mywildfly" service specifies a port on the host. If multiple containers for this service are created on a single host, the port will clash.
Creating and starting 2 ... error

ERROR: for 2 failed to create endpoint dockerfiles_mywildfly_2 on network dockerfiles_default: Bind for 0.0.0.0:8080 failed: port is already allocated

docker-compose.yml is

version: '2'
services:
mycouchbase:
container_name: "db"
image: arungupta/couchbase
ports:
- 8091:8091
- 8092:8092
- 8093:8093
- 11210:11210
mywildfly:
image: arungupta/wildfly-couchbase-javaee7
environment:
- COUCHBASE_URI=db
ports:
- 8080:8080

and the command to scale is : docker-compose.exe scale mywildfly=2.

@kirsid

@srirammageswaran srirammageswaran changed the title Scale docker compose is ausing Port Issue Scale docker compose is causing Port Conflicts Mar 26, 2016
@arun-gupta
Copy link
Contributor

scale has not been tested and included in the instructions yet.

@ah3rz ah3rz closed this as completed Apr 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants