Git Product home page Git Product logo

Comments (18)

kiwenlau avatar kiwenlau commented on June 23, 2024

用中文聊吧,然后,请具体问题讲清楚...

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

I don't really understand chinese don't mind in english ?

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

Hi Mr Kiwenlau,

the following are my question I would like ask :

  1. I'm confuse on what are the file inside the docker image before get get clone from the GitHub ?
  2. how you build your kiwenlau/hadoop-master in docker hub ? I very curious to learn that !
    Would you mind teach me how you build those ?

3 Hope to heard from you soon ! 👍 Thanks ! 👍

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 23, 2024

Sorry for the late reply.

  1. I can not understand the first problem.
  2. Build image using "docker build" command and push image to DockerHub using "docker push" command:

You can check following file for building all docker images:
https://github.com/kiwenlau/hadoop-cluster-docker/blob/master/build-image.sh

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

Hi Mr Kiwenlau,

  1. What I am trying to ask is, Do you mind indicate a step by step guide on how you create the
    docker images ? At least i have a draft idea on how you create your docker images file maybe 1
    example? 👍
  2. Why do we need clone the source code from GitHub? Cant we just develop 'the source code directly
    from dockerfile? 👍
  3. How to see what is inside the "sudo docker pull kiwenlau/hadoop-master:0.1.0." before I pull the
    Source code from GitHub.

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 23, 2024

To build a docker image:

  1. Write Dockerfile
  2. Run "docker build command"

https://docs.docker.com/engine/reference/builder/
https://docs.docker.com/engine/reference/commandline/build/

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

Before you push your dockerfile into the docker hub. Inside your dockerfile i container what ?

why we stiill need to get the source code from GitHub?

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 23, 2024

You can just pull all required images by running "docker pull".And you don't have to build image by your self. In this case, you don't need Dockerfile.
However, to run the project, you need to get the shell script "start-container.sh".

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

Don't need Dockerfile ?

we still sudo docker pull kiwenlau/hadoop-master:0.1.0?

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

Let say I would like you build my own docker image. Don't mind at least tell how you go about process one of the image here therefore I have a better understanding !

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 23, 2024

You can check following file for building all docker images:
https://github.com/kiwenlau/hadoop-cluster-docker/blob/master/build-image.sh

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

Just would like to clear my confusion since we no need to build our own docker images why we still need sudo docker pull kiwenlau/hadoop-master:0.1.0?

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 23, 2024

Using following command to build hadoop-base image:

cd hadoop-cluster-docker/hadoop-base
sudo docker build -t kiwenlau/hadoop-base:0.1.0 .

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

what is the purpose of sudo docker pull kiwenlau/hadoop-master:0.1.0?

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 23, 2024

The purpose of "sudo docker pull kiwenlau/hadoop-master:0.1.0" is to download docker image.

You should spend more time on studying Docker

I can not explain ever details...

from hadoop-cluster-docker.

TaylorNm08z avatar TaylorNm08z commented on June 23, 2024

Thank ! I re-read through and have full understand !!! you are an awesome developer 5 start for you !!!! 👍 👍 👍 👍 👍 👍

from hadoop-cluster-docker.

amir-rahnama avatar amir-rahnama commented on June 23, 2024

@kiwenlau @TaylorNm08z you don't need any sudo. You can just pull. Even for building on your machine, you don't need sudo. It's because Docker demon runs as a root user. Read more here: https://docs.docker.com/engine/installation/linux/ubuntulinux/

from hadoop-cluster-docker.

kiwenlau avatar kiwenlau commented on June 23, 2024

You need sudo to run docker command when you are not root user.

from hadoop-cluster-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.