Giter Site home page Giter Site logo

pavan9700 / dockerfile_apache-2.4_php-7.2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amarsingh3d/dockerfile_apache-2.4_php-7.2

0.0 1.0 0.0 7 KB

Build your custom docker image

Home Page: https://linuxhowtoguide.blogspot.com/2018/12/dockerfile-create-docker-image-with.html

Dockerfile 93.89% HTML 4.80% PHP 1.32%

dockerfile_apache-2.4_php-7.2's Introduction

Create docker image using Dockerfile- Apache-2.4 and PHP-7.2

Docker is the most revolutionized technology in virtualization world nowadays. Docker is actually an open source project which provides container technology. A container is a lightweight VM(virtual machine) or a process which allows us to install Linux based applications inside it. The container doesn’t have its own Kernel, RAM, CPU and Disk but it uses the underlying OS kernel, RAM, CPU cores and Disk.

image

Step 1- Install Docker in Ubuntu 16.04:

Please follow Step by Step installation of Docker Ubuntu 16.04 in my previous blog-

https://linuxhowtoguide.blogspot.com/2018/08/how-to-install-docker-in-ubuntu-1604-lts.html

Step 2- download Dockerfile:

run following command on you ubuntu terminal

git clone https://github.com/amarsingh3d/dockerfile_apache-2.4_php-7.2.git

Step 3- Build own Docker Image:

docker build -t ubuntu16:apache-php7.2 .

Step 4- Test our docker image by running a Container:

docker run -dit --name webS -p 8080:80 ubuntu16:apache-php7.2

Verify Running Container

docker container ls
CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS              PORTS                        NAMES
0cc9465284a9        ubuntu16:apache-php7.2                "/bin/sh -c '/usr/sb…"    14 seconds ago      Up 11 seconds    0.0.0.0:8080->80/tcp              webS

Step 5- Verify container and PHP version In order to Verify container and PHP version open browser and access host IP address with port 8080-

 http://hostip:8080

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.