-
Notifications
You must be signed in to change notification settings - Fork 4
Extract credentials from a Docker Container running a Java WAR file
Peter Moser edited this page Apr 4, 2022
·
1 revision
- Go to
/var/docker/your-project/current
- Run
docker-compose run app bash
- Go to
webapps
folder and extract the webapp withjar -xvf your-webapp.war
- Find your credentials and copy/paste them
On the server:
# Find the ID of the currently running container
docker ps
# Copy the war file to the host
docker cp container-id:/usr/local/tomcat/webapps/ROOT.war
# Unzip it
unzip ROOT.war
On your machine:
Now scp
the file to your machine
This wiki contains additional information about the Open Data Hub alongside the Open Data Hub - Official Documentation 🔗 .