Creating File in CentOS Docker container



Let's create a file in the centos container.










So, you can see above

- I have a created a directory in my Centos Container (ae358738....) called Sample

- I have created a SampleText.txt file in it

- I exited the centos docker container

Now, to check this file again, we need to restart the same docker container
so, we use







[Press Enter]



And we are back to the same centos container and we can see our files back in it.









So, in this way, we can play between many Operating Systems keeping our whole work in each container safe also.





0 comments:

Post a Comment