Giter Site home page Giter Site logo

docker's Introduction

Setting up Docker

Download Docker for Windows (link)

Download for Windows

Open your gitbash terminal and run the following command to make sure Docker has been downloaded.

$ docker --version
Docker version 24.0.6, build ed223bc

Running Nginx in a Docker Container

$ docker run -d -p 80:80 nginx
68206eeac64ba31df5225ba3da46790ae089f2f8f77f9c248dcc293fc32d9b99

Prismika@Pris MINGW64 ~/Desktop
$ docker ps
CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS          PORTS                NAMES
68206eeac64b   nginx     "/docker-entrypoint.…"   13 seconds ago   Up 13 seconds   0.0.0.0:80->80/tcp   friendly_elgamal

Alt text

Access Nginx from local host

Open your web browser and navigate to http://localhost. You should see the default Nginx welcome page.

Alt text

Stop and Start the Container

docker ps 

Alt text

docker stop <CONTAINERID>

docker start <CONTAINERID>

Alt text

Remove the container

docker rm <CONTAINERID> -f

Alt text

Access the Shell inside the Docker container

docker exec -it 97b47349673e sh

Alt text

Install Dependencies:

apt update 

apt upgrade -y 

apt install sudo

apt install nano

docker's People

Contributors

pxxmie avatar

Watchers

 avatar

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.