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?










share|improve this question






















  • Why downvote? Please tell me the reason.
    – akai
    Nov 13 at 0:24















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?










share|improve this question






















  • Why downvote? Please tell me the reason.
    – akai
    Nov 13 at 0:24













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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 at 0:21









akai

3202622




3202622












  • 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




Why downvote? Please tell me the reason.
– akai
Nov 13 at 0:24












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






share|improve this answer





















  • 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 Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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

























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






share|improve this answer





















  • 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

















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






share|improve this answer





















  • 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















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






share|improve this answer












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







share|improve this answer












share|improve this answer



share|improve this answer










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




















  • 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




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?