Behaviour is different for shell "sed" command in alpine3.4 and alpine3.8
Here is the contents of my Dockerfile
cat Dockerfile
FROM alpine:3.8
COPY server.xml /tmp
RUN sed -i ‘1,/redirectPort=“8443”/ s//redirectPort=“8443”
relaxedQueryChars=“[]”/’ /tmp/server.xml
If the alpine version is changed to anything lower than 3.8, noticing
failure in “docker build”.
Error message noticed :- “sed: no previous regexp”
If the alpine version is 3.8, noticing no failure in “docker build”.
The version being used currently is 3.4
sed command is used to find and replace string.
(from redmine: issue id 9137, created on 2018-07-26)
- Relations:
- duplicates #9135 (closed)