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

scaling a service with docker compose
Docker Compose apparently ignores COMPOSE_FILE
Where does Docker install gems on a mac
What is the difference between docker-machine and docker-compose?
Docker Compose port issue. Cannot launch docker project on localhost
Name an image built from running a docker-compose file
Race conditions after changing names in docker-compose.yml
Docker compose - image not found
How to work out the hostname that compose gives containers?
docker-compose restart container if service is dead
Swarm scheduling not working as expected using filters in compose file
issues in buiding Slate with Docker
Invalid type error in Docker Compose
Django cookiecutter with Docker add pip package
Docker Compose + Swarm + Machine Networking issue
docker-compose build image parameters --force-rm --pull

Categories

HOME
autohotkey
http
swift3
service
highmaps
ms-access-2010
flowtype
travis-ci-cli
gnuradio
meson-build
markdown
genexus
yacc
ethereum
jcodemodel
drush
appsettings
internet-explorer-7
openam
caldav
datazen-server
coccinelle
email-client
procedural-generation
functional-dependencies
apdu
aspxgridview
traveling-salesman
windows-10-mobile
selenium3
drawrect
ios-autolayout
blockly
kubectl
flickr
gstreamer-1.0
device-driver
jibx
jquery-ui-slider
rexx
niagara-ax
weld
ack
jenkins-2
activeandroid
hierarchical-clustering
yank
noise
dynamic-linking
playframework-2.3
kendo-scheduler
selection-sort
spring-cloud-aws
was
android-music-player
symantec
class-design
jira-agile
razorengine
controlpanel
wiql
php-gd
biginsights
log4cxx
jsoncpp
roslyn-code-analysis
borland-c++
httpmodule
sicstus-prolog
dockerpy
backtrace
random-access
frisby.js
report-builder2.0
disabled-control
telerik-appbuilder
isl
episerver-7
traceur
dayofweek
kernel-density
mongoid4
boofcv
mencoder
myrrix
ojb
nsnumber
nokogiri
android-library
metapost
xcode4.6.3
systrace
advanceddatagrid
execjs
opendir
jexcelapi
lwp
cpack
web-search
rpxnow

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