Permissions error when using cli in Jboss wildfly and docker Permissions error when using cli in Jboss wildfly and docker docker docker

Permissions error when using cli in Jboss wildfly and docker


I believe the error is caused by the last command which is changing some permissions to the folder.

Please move down:

RUN rm -rf /opt/jboss/wildfly/standalone/configuration/standalone_xml_history/current

to

RUN $TMPDIR/config.shRUN rm -rf /opt/jboss/wildfly/standalone/configuration/standalone_xml_history/current/*RUN chown -R jboss:jboss /opt/jboss/wildfly/

Thanks,Andrei


There is also workaround. You can enter running container and remove folder causing this error for currently running container.

  1. Enter running docker container
    for example using this command
    docker exec -it jboss_1 bash
  2. Execute this while in container:

    cd /opt/jboss/wildfly/standalone/configuration/standalone_xml_history/
    rm -rf current
    exit

Various jboss versions might have different directories with domain_xml_history or standalone_xml_history. For example on Jboss 6.4.0 working in domain mode it is /opt/jboss/EAP-6.4.0/domain/configuration/domain_xml_history/