Getting Started with Containerization by Gabriel N. Schenker

Getting Started with Containerization by Gabriel N. Schenker

Author:Gabriel N. Schenker
Language: eng
Format: epub
Tags: COM000000 - COMPUTERS / General, COM051230 - COMPUTERS / Software Development and Engineering / General, COM088000 - COMPUTERS / System Administration / General
Publisher: Packt Publishing
Published: 2019-03-26T11:16:30+00:00


//run docker pull to download CentOS docker image

$ docker pull centos

Using default tag: latest

latest: Pulling from library/centos

d9aaf4d82f24: Pull complete

Digest: sha256:4565fe2dd7f4770e825d4bd9c761a81b26e49cc9e3c9631c58cfc3188be9505a

Status: Downloaded newer image for centos:latest

How to do it...

The following are the steps to create a Pod has 2 containers:

Log on to the Kubernetes machine (no need to log on if using minikube) and prepare the following YAML file. It defines the launch nginx container and the CentOS container.

The nginx container opens the HTTP port (TCP/80). On the other hand, the CentOS container attempts to access the localhost:80 every three seconds using the curl command:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.