Extract credentials from a Docker Container running a Java WAR file - noi-techpark/odh-docs GitHub Wiki
Copy/paste plain text files
- 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
Binaries can be copied as follows
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