LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 10-28-2022, 10:03 AM   #1
zapeador
LQ Newbie
 
Registered: Mar 2022
Posts: 27

Rep: Reputation: 0
docker containers file


hello, I'm starting with docker containers and I managed to get an application, the problem I have is that I have to access a file that is in /var/APP/secrets/initialadminpassword but that path does not exist, I want to know how I find out the paths to the files of the container

Thank you
 
Old 10-28-2022, 12:05 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,666

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by zapeador View Post
hello, I'm starting with docker containers and I managed to get an application, the problem I have is that I have to access a file that is in /var/APP/secrets/initialadminpassword but that path does not exist, I want to know how I find out the paths to the files of the container
Did you do any research at all? Putting "how to access files in a docker container on Linux" into Google pulls up many articles, like this one:
https://askubuntu.com/questions/1372...n-ubuntu-20-04

Read the "Question Guidelines" (as you've been asked before), and provide details/do research when asking a question.
 
Old 10-29-2022, 03:00 PM   #3
zapeador
LQ Newbie
 
Registered: Mar 2022
Posts: 27

Original Poster
Rep: Reputation: 0
If I searched and after searching a lot I asked here, but in the link you send me it still doesn't help me, I can't find where the application configuration files are
 
Old 10-29-2022, 03:40 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,666

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by zapeador View Post
If I searched and after searching a lot I asked here, but in the link you send me it still doesn't help me, I can't find where the application configuration files are
Then there is nothing we can help you with. You were handed a link that explicitly tells you how to mount the Docker container...from there, go INTO that mount point. And again, you only say "can't find where"...but don't tell us exactly what you did, what the results were, how you looked, etc. We still cannot guess.

If the link that had to be looked up for you didn't help, then you probably should either:
  1. Look up things for yourself.
  2. Post a a clear question with details about what typed in, etc., so someone can help from there.
As it is, it appears you did no research of your own, and somehow expect folks here to be able to tell you exactly what to do, when we have no details. Did you actually read that entire page, or just look at the top?? Might want to read the part that starts with: "Normally, you can't find your container's files on your hard drive. If you want to browse the files, you need a shell inside the container:", and has other info there.

Last edited by TB0ne; 10-30-2022 at 09:20 AM.
 
Old 11-01-2022, 09:33 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Container technologies commonly use "user-mounted file systems" in which the data is actually stored in large physical files which have a filesystem-like internal structure. This is not the only way to do it, but it is a common way, partly so the host's own filesystem does not get too messy. You have to go into the container environment to see the "files." (Well, there are "host-side utilities" ...)

You need to provide exact details in order to get a meaningful answer, as there are too many possibilities for anyone to "speculate" as to what your situation is.

Last edited by sundialsvcs; 11-01-2022 at 09:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The rocky road to better Linux software installation: Containers, containers, containers LXer Syndicated Linux News 0 11-27-2021 10:49 AM
LXer: You are here: Home / Tips / How to Run Docker Containers How to Run Docker Containers LXer Syndicated Linux News 0 01-29-2020 03:00 PM
LXer: How to install Docker and run Docker containers on Fedora 25 LXer Syndicated Linux News 0 12-07-2016 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration