How to explore Docker container Linux apps’ file system

- Advertisment -
- Advertisement -

Docker is a well stable, commercial and one of the most popular way to start the containerized virtual machines on Windows, macOS, Linux and FreeBSD. If you already have used it then you would know how easy it to create and install any Container image of different Linux apps on Docker; however, recently I was performing a tutorial installing headless Cockpit CMS on Docker and need to access its file system. Thus, I thought might be someone out there also want to know the commands to find the files and directory of Docker containerized apps such as Cockpit CMS.

For that first of all, you should know the name of the Docker image you have installed. If you don’t know then simply type:

docker ps

Now, to explore the file system of any install Linux app on Linux, type:

docker exec -t -i name-of-image /bin/bash

or

docker run --rm -it --entrypoint=/bin/bash name-of-image

Note: Replace the name-of-image with the exact name of your Docker install container image.

Now, you will see the root directory of the install Linux app, type:

ls

or

ls -lsa

and start exploring the directory of it. You can change the directory using:

cd

 

H2S Media Team
H2S is a group of tech enthusiasts those are passionate about latest technology developments. They always like to solve own technical problems and share the same solution with others through this Website.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

H1Z1 Mobile version game is about to launch

The developer has announced for H1Z1 Mobile Production: A piece of news came out form the Business Wire that...

Most misunderstood, or interchangeably used tech terms of the era

We are advancing very fast in the world of Technology and we keep seeing new peripherals and gadgets every...

How to create a shortcut to turn off your computer or other power options

The traditional way of shutting down a Windows computer doesn't take a lot of time and we all are...

How to delete pages from a PDF file without any online tool for free

PDF files are quite common these days and it is compatible with almost all types of devices in today's...
- Advertisement -

Microsoft’s new Windows 10 Insider Preview with new icons

Microsoft has launched a new Windows 10 Insider Preview with build 19569.1000 for Fast ring users with new app...

What is Serverless Computing technology and its Benefits

Technology has brought a very drastic change in our lives today and it has influenced everything present in this...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you