Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config & accessing interatively the container #33

Open
eliassal opened this issue Mar 19, 2021 · 0 comments
Open

Config & accessing interatively the container #33

eliassal opened this issue Mar 19, 2021 · 0 comments

Comments

@eliassal
Copy link

eliassal commented Mar 19, 2021

Exercise
CH- 6 Using Mounts - page 87

Question
This is a question: When using
How does the application knows it needs to read the app.settings from the config directoy and the one found in directory. Also, in the original app.settings, we have more yaml tags so we will lose them no? I managed to see the contents of appsettings in the container which is not changed

docker container exec eb110c8a cmd /C "type C:\app\appsettings.json "

OUTPUT

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"Database" : {
"Provider" : "Sqlite"
},
"ConnectionStrings": {
"ToDoDb": "Filename=/data/todo-list.db"
}
}

still the basic details are there but logging is working as if it was magic :-)
Also, If I understand well, This will not allow us to use the todo-list volume anymore, is this correct?
2nd, If I would like to access the container with
docker exec -it cmd /c
it does not allow as it shows directly the running app and can't do anything, typing Ctrl+C will terminate the app and exit the container. So How can I access the container in this case without stopping the container? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant