docker-compose


Jhipster Docker-compose conflict


I am attempting to use jhipster to generate a microservices architecture set of apps. From within the jhipster-devbox, I do the following:
$ mkdir mygateway && cd mygateway
$ yo jhipster - select gateway, answer all questions
$ ./gradlew bootRepackage -Pdev buildDocker want to make sure this all runs locally before I try to move it to AWS
$ cd.. && mkdir myapi && && cd myapi
$ yo jhipster - select microservices app (same package name as gateway...don't know if that matters, but not for this question)
$ ./gradlew bootRepackage -Pdev buildDocker
$ cd .. && mkdir docker-compose && cd docker-compose
$ yo jhipster:docker-compose (all items have run successfully to this point)
$ docker-compose up -d returns:
ERROR: Conflict. The name "/jhipster-registry" is already in use by
container
a785f619b5dd985b3ff30a8ed6e41066795eb8b5e108d2549cd4a9d5dc27710a. You
have to remove (or rename) that container to be able to reuse that
name.
It would appear the "jhipster-registry" is available inside the gateway and api apps I just created... I tried commenting them out of the app.yml file to no success?
I had the same problem but it's that you already have a docker container named "jhipster-registry". I imagine it's because you already had created at least 1 other jhipster microservices stack with docker before. If you remove the jhipster-registry container (i.e. docker rm jhipster-registry) and then run docker-compose up -d again, you should be fine as it will recreate the container. I'm not sure why the jhipster-registry container doesn't get prefixed by the directory it's in (as the other containers in the stack do). I think it has to do with the jhipster-registry.yml file that specifically names the container "jhipster-registry".

Related Links

how to make docker-compose pull latest images of certain services
network issue in one docker compose with keycloak and tomcat container
Docker compose, set local volume mapping with version 3
version control of docker-compose.yml
Limit resources in docker-compose v3
Docker compose: using relative service address in environment
Azure Container Service: Update Docker-Compose?
Docker compose: doesnt allow to use constraints if you have a env variable set
How to use visual studio docker function on Windows Home edition?
Passing arguments to docker compose file when using it for swarm
How to run ad hoc docker compose commands in Ansible?
Using custom hostnames for docker local development containers
Changing the network name?
Let external container know about subnets created by multiple docker-compose projects
How to monitor / discover more docker containers with prometheus
two docker-compose .yml in the same network with COMPOSE_PROJECT_NAME

Categories

HOME
spring-boot
ssh
weblogic
xamarin.forms
popover
conceptual
arguments
artifactory
travis-ci-cli
zabbix
cdn
doctrine2
cracking
ios-universal-links
osrm
http-status-codes
ng2-charts
android-notifications
repeater
console-application
dat.gui
google-street-view
beacon
datasource
polybase
javaagents
waterfall
jira-zephyr
drombler-fx
marionette
angular-schema-form
emr
recreate
sdl-2
mockserver
azure-web-roles
paperclip
api-key
taleo
anonymous-function
google-chrome-storage
nao-robot
import.io
apache-commons-cli
lightspeed
sharing
ownership
android-music-player
android-tabs
nimbus
angularfire
phpdesigner
trendline
dynamics-nav-2013
opendolphin
wingdb
pysvn
gnip
pnunit
step
switchpreference
data-layers
nomachine
ie-developer-tools
infomaker
zend-db-table
outlook-object-model
architectural-patterns
nsregularexpression
volatility
expresso-store
event-propagation
diazo
umfpack
excellibrary
p4.net
httpbrowsercapabilities
high-load

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App