How to find and edit the file inside Docker container?
up vote
-1
down vote
favorite
i have a docker installed on CentOS machine which is running. I need to find the file and edit that particular file inside the docker and that change must need to effect on website which is already running.
i am able to find the docker container id using "Docker PS". I am new to docker and don't have knowledge about this.
Is there any way to resolve this ?
docker centos
|
show 4 more comments
up vote
-1
down vote
favorite
i have a docker installed on CentOS machine which is running. I need to find the file and edit that particular file inside the docker and that change must need to effect on website which is already running.
i am able to find the docker container id using "Docker PS". I am new to docker and don't have knowledge about this.
Is there any way to resolve this ?
docker centos
What docker image are you running?
– libzz
Nov 22 at 6:01
i am not sure what do you mean by this. We are running sales.js
– Hitu Bansal
Nov 22 at 6:06
1
What is the value of FROM in your dockerfile? If it's an operating system, like Ubuntu, Centos, etc., you can usedocker exec -it <container name> bashto access the files.
– libzz
Nov 22 at 6:08
it's Centos. i am doing the same and not able to find that file
– Hitu Bansal
Nov 22 at 6:09
1
Hope this helps stackoverflow.com/a/40324326/803687
– Anand
Nov 22 at 8:13
|
show 4 more comments
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
i have a docker installed on CentOS machine which is running. I need to find the file and edit that particular file inside the docker and that change must need to effect on website which is already running.
i am able to find the docker container id using "Docker PS". I am new to docker and don't have knowledge about this.
Is there any way to resolve this ?
docker centos
i have a docker installed on CentOS machine which is running. I need to find the file and edit that particular file inside the docker and that change must need to effect on website which is already running.
i am able to find the docker container id using "Docker PS". I am new to docker and don't have knowledge about this.
Is there any way to resolve this ?
docker centos
docker centos
asked Nov 22 at 5:54
Hitu Bansal
58553069
58553069
What docker image are you running?
– libzz
Nov 22 at 6:01
i am not sure what do you mean by this. We are running sales.js
– Hitu Bansal
Nov 22 at 6:06
1
What is the value of FROM in your dockerfile? If it's an operating system, like Ubuntu, Centos, etc., you can usedocker exec -it <container name> bashto access the files.
– libzz
Nov 22 at 6:08
it's Centos. i am doing the same and not able to find that file
– Hitu Bansal
Nov 22 at 6:09
1
Hope this helps stackoverflow.com/a/40324326/803687
– Anand
Nov 22 at 8:13
|
show 4 more comments
What docker image are you running?
– libzz
Nov 22 at 6:01
i am not sure what do you mean by this. We are running sales.js
– Hitu Bansal
Nov 22 at 6:06
1
What is the value of FROM in your dockerfile? If it's an operating system, like Ubuntu, Centos, etc., you can usedocker exec -it <container name> bashto access the files.
– libzz
Nov 22 at 6:08
it's Centos. i am doing the same and not able to find that file
– Hitu Bansal
Nov 22 at 6:09
1
Hope this helps stackoverflow.com/a/40324326/803687
– Anand
Nov 22 at 8:13
What docker image are you running?
– libzz
Nov 22 at 6:01
What docker image are you running?
– libzz
Nov 22 at 6:01
i am not sure what do you mean by this. We are running sales.js
– Hitu Bansal
Nov 22 at 6:06
i am not sure what do you mean by this. We are running sales.js
– Hitu Bansal
Nov 22 at 6:06
1
1
What is the value of FROM in your dockerfile? If it's an operating system, like Ubuntu, Centos, etc., you can use
docker exec -it <container name> bash to access the files.– libzz
Nov 22 at 6:08
What is the value of FROM in your dockerfile? If it's an operating system, like Ubuntu, Centos, etc., you can use
docker exec -it <container name> bash to access the files.– libzz
Nov 22 at 6:08
it's Centos. i am doing the same and not able to find that file
– Hitu Bansal
Nov 22 at 6:09
it's Centos. i am doing the same and not able to find that file
– Hitu Bansal
Nov 22 at 6:09
1
1
Hope this helps stackoverflow.com/a/40324326/803687
– Anand
Nov 22 at 8:13
Hope this helps stackoverflow.com/a/40324326/803687
– Anand
Nov 22 at 8:13
|
show 4 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53424660%2fhow-to-find-and-edit-the-file-inside-docker-container%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What docker image are you running?
– libzz
Nov 22 at 6:01
i am not sure what do you mean by this. We are running sales.js
– Hitu Bansal
Nov 22 at 6:06
1
What is the value of FROM in your dockerfile? If it's an operating system, like Ubuntu, Centos, etc., you can use
docker exec -it <container name> bashto access the files.– libzz
Nov 22 at 6:08
it's Centos. i am doing the same and not able to find that file
– Hitu Bansal
Nov 22 at 6:09
1
Hope this helps stackoverflow.com/a/40324326/803687
– Anand
Nov 22 at 8:13