For people working with Docker build
@Itay Elgazar (elgazaritay)
Copy the script above into a file(like ubuntuFix.sh)
Use it in your Dockerfile like below:-
FROM ubuntu:latest
USER root
WORKDIR /home/app
COPY . /home/app
#Workaround for ubuntu fix start
RUN mv /bin/uname /bin/uname.orig
RUN cp ./ubuntuFix.sh /bin/uname
RUN chmod 755 /bin/uname;
RUN cat /bin/uname
#Workaround for ubuntu fix end
RUN apt clean
RUN apt-get update
RUN apt -y install gnupg2
.....
.....
//Rest of the Dockerfile code
.....
.....
@Nic thanks for the solution..
Hope this works for others using Docker image
For people working with Docker build
@Itay Elgazar (elgazaritay)
Copy the script above into a file(like ubuntuFix.sh)
Use it in your Dockerfile like below:-
FROM ubuntu:latest
USER root
WORKDIR /home/app
COPY . /home/app
#Workaround for ubuntu fix start
RUN mv /bin/uname /bin/uname.orig
RUN cp ./ubuntuFix.sh /bin/uname
RUN chmod 755 /bin/uname;
RUN cat /bin/uname
#Workaround for ubuntu fix end
RUN apt clean
RUN apt-get update
RUN apt -y install gnupg2
.....
.....
//Rest of the Dockerfile code
.....
.....
@Nic thanks for the solution..
Hope this works for others using Docker image