Docker seems to include OS?
up vote
-2
down vote
favorite
I'm just starting docker.
According to some articles, the most significant difference of docker from VM is that it doesn't run on an emulated OS but on the host kernel.
However, when I run the nginx image on my Mac:
$ docker run -d nginx
a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2
$ docker exec -it a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2 bash
root@a88142a23cb4:/# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@a88142a23cb4:/#
So for me, it seems like this container actually runs Debian, and nginx on top of it.
Now I'm totally confused. Can somebody explain this output?
docker
add a comment |
up vote
-2
down vote
favorite
I'm just starting docker.
According to some articles, the most significant difference of docker from VM is that it doesn't run on an emulated OS but on the host kernel.
However, when I run the nginx image on my Mac:
$ docker run -d nginx
a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2
$ docker exec -it a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2 bash
root@a88142a23cb4:/# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@a88142a23cb4:/#
So for me, it seems like this container actually runs Debian, and nginx on top of it.
Now I'm totally confused. Can somebody explain this output?
docker
Why downvote? Please tell me the reason.
– akai
Nov 13 at 0:24
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I'm just starting docker.
According to some articles, the most significant difference of docker from VM is that it doesn't run on an emulated OS but on the host kernel.
However, when I run the nginx image on my Mac:
$ docker run -d nginx
a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2
$ docker exec -it a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2 bash
root@a88142a23cb4:/# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@a88142a23cb4:/#
So for me, it seems like this container actually runs Debian, and nginx on top of it.
Now I'm totally confused. Can somebody explain this output?
docker
I'm just starting docker.
According to some articles, the most significant difference of docker from VM is that it doesn't run on an emulated OS but on the host kernel.
However, when I run the nginx image on my Mac:
$ docker run -d nginx
a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2
$ docker exec -it a88142a23cb4e1900093ee4a27303f7d80adb0305e4008203829a84ae29ca4f2 bash
root@a88142a23cb4:/# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@a88142a23cb4:/#
So for me, it seems like this container actually runs Debian, and nginx on top of it.
Now I'm totally confused. Can somebody explain this output?
docker
docker
asked Nov 13 at 0:21
akai
3202622
3202622
Why downvote? Please tell me the reason.
– akai
Nov 13 at 0:24
add a comment |
Why downvote? Please tell me the reason.
– akai
Nov 13 at 0:24
Why downvote? Please tell me the reason.
– akai
Nov 13 at 0:24
Why downvote? Please tell me the reason.
– akai
Nov 13 at 0:24
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Docker use a base image to start which generally a OS image(Not actually OS. It does not have a kernel). It provides a file system and necessary library to run your application.
For more details, see this answer: https://stackoverflow.com/a/53049134/7695859
Your linked answer is great! Now I got the basic idea.
– akai
Nov 13 at 4:43
That answer also mine. :)
– Emruz Hossain
Nov 13 at 5:04
Yep, so I was the upvoter.
– akai
Nov 13 at 7:08
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Docker use a base image to start which generally a OS image(Not actually OS. It does not have a kernel). It provides a file system and necessary library to run your application.
For more details, see this answer: https://stackoverflow.com/a/53049134/7695859
Your linked answer is great! Now I got the basic idea.
– akai
Nov 13 at 4:43
That answer also mine. :)
– Emruz Hossain
Nov 13 at 5:04
Yep, so I was the upvoter.
– akai
Nov 13 at 7:08
add a comment |
up vote
1
down vote
accepted
Docker use a base image to start which generally a OS image(Not actually OS. It does not have a kernel). It provides a file system and necessary library to run your application.
For more details, see this answer: https://stackoverflow.com/a/53049134/7695859
Your linked answer is great! Now I got the basic idea.
– akai
Nov 13 at 4:43
That answer also mine. :)
– Emruz Hossain
Nov 13 at 5:04
Yep, so I was the upvoter.
– akai
Nov 13 at 7:08
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Docker use a base image to start which generally a OS image(Not actually OS. It does not have a kernel). It provides a file system and necessary library to run your application.
For more details, see this answer: https://stackoverflow.com/a/53049134/7695859
Docker use a base image to start which generally a OS image(Not actually OS. It does not have a kernel). It provides a file system and necessary library to run your application.
For more details, see this answer: https://stackoverflow.com/a/53049134/7695859
answered Nov 13 at 3:46
Emruz Hossain
84017
84017
Your linked answer is great! Now I got the basic idea.
– akai
Nov 13 at 4:43
That answer also mine. :)
– Emruz Hossain
Nov 13 at 5:04
Yep, so I was the upvoter.
– akai
Nov 13 at 7:08
add a comment |
Your linked answer is great! Now I got the basic idea.
– akai
Nov 13 at 4:43
That answer also mine. :)
– Emruz Hossain
Nov 13 at 5:04
Yep, so I was the upvoter.
– akai
Nov 13 at 7:08
Your linked answer is great! Now I got the basic idea.
– akai
Nov 13 at 4:43
Your linked answer is great! Now I got the basic idea.
– akai
Nov 13 at 4:43
That answer also mine. :)
– Emruz Hossain
Nov 13 at 5:04
That answer also mine. :)
– Emruz Hossain
Nov 13 at 5:04
Yep, so I was the upvoter.
– akai
Nov 13 at 7:08
Yep, so I was the upvoter.
– akai
Nov 13 at 7:08
add a comment |
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%2f53272025%2fdocker-seems-to-include-os%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
Why downvote? Please tell me the reason.
– akai
Nov 13 at 0:24