Git Product home page Git Product logo

docker's Introduction

Docker

Setting and running applications using Docker.

Installing Docker into Linux- Ubuntu

  1. Check if you have the OS requirements (Bionic) by running cat /etc/*release* on the terminal.
  2. Uninstall old versions by running sudo apt-get remove docker docker-engine docker.io containerd runc.
  3. Set up the repository.Easier way to install docker is to go down to the bottom Install using the convenience script.
    • curl -fsSL https://get.docker.com -o get-docker.sh
    • sudo sh get-docker.sh
  4. Check docker version by running sudo docker version command.
  • (optional) Run a simple container to ensure everything is running as expected: sudo docker run docker/whalesay cowsay Hello-World found in the docker hub https://hub.docker.com/r/docker/whalesay.

Installing docker compose

  1. RUN sudo pip install docker-compose

NB: In computer networking, port forwarding or port mapping is an application of network address translation (NAT) that redirects a communication request from one address and port number combination to another while the packets are traversing a network gateway, such as a router or firewall.

NGINX

  • $ docker run --name mynginx -p 80:80 -d nginx
    • mynginx is the name of the created container based on the NGINX image.
    • the -d option specifies that the container runs in detached mode: the container continues to run until stopped but does not respond to commands run on the command line.
    • the -p option tells Docker to map the ports exposed in the container by the NGINX image (port 80) to the specified port on the Docker host. The first parameter specifies the port in the Docker host, the second parameter is mapped to the port exposed in the container.

Additional NGINX info

Installing NGINX in Docker


Projects

Guide to creating Docker Images and Docker-Compose:


1. How To Set Up Flask with MongoDB and Docker

How-to-set-up-flask-with-mongodb-and-docker

docker's People

Contributors

martinmwiti avatar

Watchers

James Cloos 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.