Docker Community Forums

Share and learn in the Docker community.

Pass hostname in RUN

docker

(bk) #1

Hello,

I am trying to pass hostname. I tried various steps , it didnt work . I get bad substition error .

RUN sed -i -e “/ADMIN_HOST/c\ADMIN_HOST = ${(hostname)}” /app/ws7/ows/ADMIN.silentfile

Appreciate your help.