Docker Community Forums

Share and learn in the Docker community.

Issue accessing Nexus container from nginx container

Team,
Need some expert advice here. I have a Nexus container running in my Docker hub and as well one nginx container running. So, when i try to do a wget from nginx container it fails with:
root@8cecc8c90c6c:/# wget http://nexus:8081
–2021-02-02 15:07:41-- http://nexus:8081/
Resolving nexus (nexus)… 172.18.0.12
Connecting to nexus (nexus)|172.18.0.12|:8081… failed: Connection refused.

And in Nexus container logs i see like below:

2021-02-02 09:30:47,173+0000 ERROR [ForkJoinPool.commonPool-worker-1] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception 0608C66C in storage plocal:/nexus-data/db/config: 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x)
java.lang.NullPointerException: null
2021-02-02 09:30:47,174+0000 ERROR [ForkJoinPool.commonPool-worker-1] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=config}} Error during storage close
java.lang.NullPointerException: null
2021-02-02 09:30:47,175+0000 ERROR [ForkJoinPool.commonPool-worker-1] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception 468726D4 in storage plocal:/nexus-data/db/config: 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x)
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/nexus-data/db/config’ with mode=rw
DB name=“config”

Need some urgent help here… Any quick help will be really appreciated.

Thanks and Regards,
Biswajeet