I am having trouble with extracting a .tar.gz file and accessing its files on a docker image. I've tried looking around Stackoverflow, but the solutions didn't fix my problem... Below is my folder structure and my Dockerfile. I've made an image called
- modus Dockerfile ModusToolbox_126.96.36.1996-linux-install.tar.gz
FROM ubuntu:latest USER root RUN apt-get update -y && apt-get upgrade -y && apt-get install git -y COPY ./ModusToolbox_188.8.131.526-linux-install.tar.gz /root/ RUN cd /root/ && tar -C /root/ -zxzf ModusToolbox_184.108.40.2066-linux-install.tar.gz
I've been running the commands below, but when I try to check /root/ the extracted files aren't there...
docker build . docker run -it modus root@e19d081664e4:/# cd root root@e19d081664e4:/# ls <prints nothing>
There should be a folder called ModusToolBox, but I can't find it anywhere. Any help is appreciated.
P.S I have tried changing ADD to COPY, but both don't work.
ModusToolbox Bluetooth SDK
Can you please try running
tar -xvf ModusToolbox_220.127.116.116-linux-install.tar.gz instead of
tar -C /root/ -zxzf ModusToolbox_18.104.22.1686-linux-install.tar.gzand let me know if that works?
In case that does not work, can you please try extracting any tar file on your image to check if extraction works?
Rakshith M B
Hi @HereturbiesWalt ,
Thread was locked due to inactivity for long time, you can continue the discussion on the topic by opening a new thread with reference to the locked one. The continuous discussion in an inactive thread may mostly be unattended by community users.
Thanks and Regards,