Docker Copy Operations Kodekloud


Question: The Nautilus DevOps team has some conditional data present on App Server 1 in Stratos Datacenter. There is a container ubuntu_latest running on the same server. We received a request to copy some of the data from the docker host to the container. Below are more details about the task:

On App Server 1 in Stratos Datacenter copy an encrypted file /tmp/nautilus.txt.gpg from docker host to ubuntu_latest container (running on same server) in /home/ location. Please do not try to modify this file in any way.


Login to mentioned server

ssh [email protected]

Login as root

sudo su

Then check docker container

docker ps

Copy the file

docker cp /tmp/nautilus.txt.gpg ubuntu_latest:/home

Check the file

docker exec ubuntu_latest ls /home

docker exec ubuntu_latest ls -ltr /home

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment


Post a Comment