You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug az acr build fails to build image on creating symlink with No such file or directory. Builing the same image with docker build is successful.
To Reproduce
Steps to reproduce the behavior:
Create Dockerfile with contents:
FROM splunk/universalforwarder:8.2
USER root
RUN mkdir -p /opt/splunkforwarder/var/log/splunk
RUN mkdir -p /opt/splunkforwarder/var/log/tmp
RUN ln -sf /opt/splunkforwarder/var/log/splunk /opt/splunkforwarder/var/log/tmp
ENTRYPOINT ["/bin/bash"]
Run az acr build
It seems that workaround with RUN mkdir -p /opt/splunkforwarder/var/log/tmp && ln -sf /opt/splunkforwarder/var/log/splunk /opt/splunkforwarder/var/log/tmp works.
Expected behavior
Image is successfully built using az acr build
Any relevant environment information
OS: MacOS Monterey 12.5
Version: azure-cli 2.40
The text was updated successfully, but these errors were encountered:
Describe the bug
az acr build
fails to build image on creating symlink withNo such file or directory
. Builing the same image withdocker build
is successful.To Reproduce
Steps to reproduce the behavior:
az acr build
It seems that workaround with
RUN mkdir -p /opt/splunkforwarder/var/log/tmp && ln -sf /opt/splunkforwarder/var/log/splunk /opt/splunkforwarder/var/log/tmp
works.Expected behavior
Image is successfully built using
az acr build
Any relevant environment information
The text was updated successfully, but these errors were encountered: