diff --git a/OracleDatabase/dockerfiles/11.2.0.2/Dockerfile.xe b/OracleDatabase/dockerfiles/11.2.0.2/Dockerfile.xe index d0b3adbac6..1116c0ea19 100644 --- a/OracleDatabase/dockerfiles/11.2.0.2/Dockerfile.xe +++ b/OracleDatabase/dockerfiles/11.2.0.2/Dockerfile.xe @@ -77,6 +77,6 @@ RUN yum -y install unzip libaio bc initscripts net-tools openssl && \ VOLUME ["$ORACLE_BASE/oradata"] EXPOSE 1521 8080 HEALTHCHECK --interval=1m --start-period=5m \ - CMD "$ORACLE_BASE/$CHECK_DB_FILE" >/dev/null || exit 1 + CMD [ "su", "-p", "oracle", "-c", "$ORACLE_BASE/$CHECK_DB_FILE > /dev/null || exit 1" ] CMD exec $ORACLE_BASE/$RUN_FILE