Ubuntu [SOLVED]: "From ubuntu" in docker container

Ubuntu [SOLVED]: "From ubuntu" in docker container

Home Forums Ubuntu Ubuntu [SOLVED]: "From ubuntu" in docker container

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #36836



    I am very new to Docker and confused with some things first of which is

     FROM ubuntu:14.04
        RUN apt-get update
        RUN apt-get install -y curl nginx

    above statement , does this statement mean we are installing ubuntu OS in a docker container which is already running on a OS e.g DC/OS in my case.



    Accepted AnswerAnswer

    The statment FROM ubuntu:14.04 means use the ubuntu image as a base image.
    The ubuntu image is not an OS. This image “mimics” an Ubuntu OS, in the sense that it has a very similar filesystem structure to an Ubuntu os and has many tools available that are typically found on Ubuntu.

    The main and fundamental difference is that the Docker Ubuntu image does not have it own linux kernel. It uses the kernel of the host machine where the container is running.

    Moreover, the size difference between the Docker image (73MB) and an Ubuntu iso(around 1Gb) is very significant.

    Source: https://stackoverflow.com/questions/47977735/from-ubuntu-in-docker-container
    Author: yamenk
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.