Skip to content

Instantly share code, notes, and snippets.

@jovemfelix
Last active October 27, 2020 12:23
Show Gist options
  • Save jovemfelix/3deec60b3cb6f0cbfb7df177f0408769 to your computer and use it in GitHub Desktop.
Save jovemfelix/3deec60b3cb6f0cbfb7df177f0408769 to your computer and use it in GitHub Desktop.
How extract de file standalone-openshift.xml from docker imagem

at terminal #1 run

$ docker run --user root --rm -it --name sso74 -P --entrypoint "/bin/bash" registry.redhat.io/rh-sso-7/sso74-openshift-rhel8:7.4

at terminal #2 - go to a temp folder and copy the image file to current folder

$ mkdir tmp-imagem-file && cd $_
$ docker cp sso74:/opt/eap/standalone/configuration/standalone-openshift.xml .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment