Archie  Clayton

Archie Clayton

1630343880

Intro to Docker - Networking, Docker Compose

In Intro to @Docker (Part 1), we learned about the fundamentals of Docker. In this video, we build on that knowledge and explain a few more concepts that are important to understand when using Docker, especially around networking which quickly comes up as soon as your application starts using multiple containers. We also explain why and how to use Docker Compose.

Did you miss Intro to Docker (Part 1)? Check it out!
https://morioh.com/p/796bc3a2c6a2 

00:00​ - Introduction
01:01 - My Application (No Docker)
02:19 - Creating a Database Container
06:08 - Creating the Application Container
10:32 - Networking in Docker (Working with Ports)
18:24 - Networking in Docker (Bridge Networks)
22:59 - Docker Compose
27:41 - Why it all matters...

Github Repo: https://github.com/daliasheasha/MyWebApp


#docker 

What is GEEK

Buddha Community

Intro to Docker - Networking, Docker Compose
Iliana  Welch

Iliana Welch

1595249460

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub

In this video lesson you will learn:

  • What is Docker Host
  • What is Docker Engine
  • Learn about Docker Architecture
  • Learn about Docker client and Docker Daemon
  • Docker Hub and Registries
  • Simple demo to understand using images from registries

#docker #docker hub #docker host #docker engine #docker architecture #api

Mikel  Okuneva

Mikel Okuneva

1602317719

Docker Bridge Network

Hello readers,

This blog will tell you about the docker bridge network. Its use with some basic use cases also how to bridge networks different from the network.

One of the reasons Docker containers and services are so powerful is that you can connect them together, or connect them to non-Docker workloads.

Docker Network

Docker’s networking subsystem is pluggable, using drivers. Several drivers exist by default, and provide core networking functionality:

Type of docker Network :
  • bridge: The default network driver. If you don’t specify a driver, this is the type of network you are creating. Bridge networks allow your applications to run in standalone containers that need to communicate.
  • host: For standalone containers, remove network isolation between the container and the Docker host, and use the host’s networking directly. The host is available for swarm services on Docker 17.06 and higher.
  • overlay: Overlay networks connect multiple Docker daemons together and enable swarm services to communicate with each other. You can also use overlay networks to facilitate communication between a swarm service and a standalone container, or between two standalone containers on different Docker daemons.
  • macvlan: Macvlan networks allow you to assign a MAC address to a container, making it appear as a physical device on your network. The Docker daemon routes traffic to containers by their MAC addresses.
  • none: For this container, disable all networking. Usually used in conjunction with a custom network driver.

Let create a bridge network with name alpine-net . Start two alpine container and ping between them to check network connectivity.

$ docker network create --driver bridge alpine-net
962f373dd1cc9b9d532287b898e56d51fe1e5cf09fe90208ccbf34e51ea4511c

#devops #docker #docker bridge network #docker network

Paris  Turcotte

Paris Turcotte

1617904440

A beginner’s guide to networking in Docker

In this lesson, we are going to understand how host-to-container and container-to-container communication takes place. Since this won’t be an advanced guide, we are only going to explore the surface of networking in Docker.

In the previous lessons, we learned a great deal about Docker, Dockerfile, Docker images, and Docker containers. We understood the isolated nature of a Docker container and how to connect with a running container using -p (_or __--publish_) flag to map a host port to a container port for network access or -v (_or __--volume_) flag to access files of a container from the host.

In this lesson, we are going to talk about the networking aspect of the containerization process. We will explore what different options Docker gives us to control the network of a Docker container and how we can use them depending on our needs.

Docker network is a medium through which a Docker container can talk to its host, other containers on the host, or any other machines on or outside the host’s network. To configure networks, we use the $ docker network command that provides us subcommands such as lscreateattach to configure networks and containers’ relationship to them.

When you install Docker for the first time, we get three types of networks out of the box. You can use the $ docker network ls command to see them.

#containers #docker-networking #networking #docker #programming

Hudson  Kunde

Hudson Kunde

1596340980

How to Install and Use Docker Compose on Debian 9

Docker Compose is a tool that allows you to define and orchestrate multi-container Docker applications. It uses a YAML file to configure the application’s containers, networks, and volumes.

Compose can be used for various purposes. Single host application deployments, automated testing, and local development are the most popular use cases for Docker Compose.

This tutorial will walk through the process of installing the latest version of Docker Compose on Debian 9. We’ll also explore the basic Docker Compose concepts and commands.

Prerequisites

Ensure that you have met the following prerequisites before continuing with this tutorial:

  • Logged in as a user with sudo privileges .
  • Have Docker installed on your Debian 9 machine.

Install Docker Compose on Debian

The Docker Compose installation package is available in the official Debian 9 repositories but it may not always be the latest version. The recommended approach is to install Docker Compose from the Docker’s GitHub repository.

At the time of writing this article, the latest stable version of Docker Compose is version 1.23.1. Before downloading the Compose binary visit the Compose repository release page on GitHub and check if there is a new version available for download.

  1. Perform the following steps to install the latest version of Docker Compose on Debian 9:Start by downloading the Docker Compose binary into the /usr/local/bin directory using the following [curl](https://linuxize.com/post/curl-command-examples/) command:
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  1. When the download is complete, give executable permissions to the Compose binary:
sudo chmod +x /usr/local/bin/docker-compose
  1. Verify the installation by typing:
docker-compose --version
  1. The output will look something like this:
docker-compose version 1.23.1, build b02f1306

Getting started with Docker Compose

In this section we will show how to use Docker Compose to manage a WordPress stack on your Debian 9 machine.

#docker #debian 9 #docker compose #yaml file #volumes #networks

Docker called the Voting App.

In this section, we will learn about Docker Compose, its file, and its commands, using a sample application developed by Docker called the Voting App.

  1. Introduction
  2. Docker File
  3. Basic Docker Commands
  4. Port and Volume Mapping
  5. Docker Networking
  6. Docker Storage
  7. Docker Compose (You are here!)
  8. Deleting Docker Entities

The Voting App is a Flask application written in Python to vote between Cats and Dogs.

Image for post

This vote is then transferred to Redis, which acts as an in-memory DB here. The worker application, written in .NET, then processes this vote and inserts it in the persistent database — the Postgres container here.

Image for post

Finally, the result of the vote is displayed via a web application that is written in NodeJS.

Image for post

Web Application in NodeJS

I highly encourage you to clone this application and play around with it, even if you do not know anything about Docker Compose yet. If you can appreciate the fact that these services are running on 5 different containers you already have your motivation to continue reading.

git clone git@github.com:dockersamples/example-voting-app.git

cd example-voting-app/
docker-compose up

#docker-compose #docker #docker-networking #design-systems #dockerfiles