I have pulled ubuntu16.04 and run docker image. I need to move all the folders to "mydistribution" folder inside docker image.
docker pull ubuntu:16.04
docker run -it ubuntu
root@cb3e5b5e75e9:/# ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
In my Dockerfile:
FROM ubuntu:16.04
USER root
ENV destpath mydistribution/ubuntu16.04
RUN mkdir -p mydistribution \
&& mkdir -p mydistribution/ubuntu16.04 \
COPY /. $destpath/ -> this will copy everything from current host folder to container, but instead of this, I want to move all the above folders (ls command output in container) into mydistribution/ubuntu16.04 using Dockerfile. I am not sure if we can do this or not, can someone help me to do the same, what will be the command to move them from container to another folder inside container?