November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Install Docker CE on Rocky Linux 8

Installing Docker CE on Rocky Linux 8

Docker has a dedicated CentOS repository that we can apply to Rocky Linux. So, the ideal would be to add it to the system and install it from there.

First access your server via SSH or, if you are using Rocky Linux from the desktop, open a […]

docker tomcat + mysql

Build on a clean CentOS image Centos image preparation Pull the Centos image on the virtual machine: docker pull centos Create a container to run the Centos image: docker run -it -d –name mycentos centos /bin/bash Note: There is an error here [ WARNING: IPv4 forwarding is disabled. Networking will not work. ]

Change […]

Docker installation builds Tomcat + MySQL

Docker installation builds Tomcat + MySQL

virtual machine Virtual machine installation Docker Build on a clean CentOS image Centos image preparation Pull the Centos image on the virtual machine: docker pull centos Create a container to run the Centos image: docker run -it -d –name mycentos centos /bin/bash Note: There is an error here […]

COPY and ADD commands in Dockerfile

COPY and ADD commands in Dockerfile

Two very similar commands COPY and ADD are provided in the Dockerfile. This article attempts to explain the basic functions of these two commands, as well as their similarities and differences, and then summarize their respective suitable application scenarios.

Build context concept When you create a mirror from a […]

Docker to build a Tomcat runtime environment

1 Prepare the host system

Prepare a CentOS 7 operating system with the following specific requirements:

Must be a 64-bit operating system. The kernel is above 3.8 to view your CentOS kernel with the following command:

# uname -r

2 Install Docker

# yum install docker Use the following command to see if Docker is […]

docker centos

[root@ docker]# cat /etc/yum.repos.d/docker-main.repo [docker-main-repo] name=Docker main Repository baseurl=https://get.daocloud.io/docker/yum-repo/main/CentOS/7 enabled=1 gpgcheck=1 gpgkey=https://get.daocloud.io/docker/yum/gpg

[root@ docker]# yum install docker-engine –y

[root@ docker]# docker –version Docker version 17.05.0-ce, build 89658be

firewall-cmd –add-port=2377/tcp –permanent

firewall-cmd –add-port=7946/tcp –permanent

firewall-cmd –add-port=7946/udp –permanent

firewall-cmd –add-port=4789/udp –permanent

firewall-cmd –reload**

[root@ docker]# cat /etc/docker/daemon.json { “insecure-registries”:[“docker-registry.rmohan.com:5000”], “log-driver”:”json-file”, “log-opts”:{“max-size”:”1024m”,”max-file”:”2″} }

[root@ ~]# systemctl restart docker.service

[…]

Detailed Docker container common operations

First, start the container

There are two ways to start a container. One is to create a new container based on the image and start, and the other is to restart the container in the terminated state. Because Docker’s containers are too lightweight, users often delete and recreate containers at any time.

New and start

[…]

CentOS 7 Installs Docker Application Container Engine

Docker is an open source application container engine based on the Go language and open sourced under the Apache 2.0 protocol.

Docker allows developers to package their applications and dependencies into a lightweight, portable container that can then be published to any popular Linux machine or virtualized.

Containers are completely sandboxed and do not […]

ANSIBLE Practice

ANSIBLE Practice Ansible-palybooks

root@controller:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/root/.ssh/id_rsa. Your public key has been saved in /home/root/.ssh/id_rsa.pub. The key fingerprint is: 33:b8:4d:8f:95:bc:ed:1a:12:f3:6c:09:9f:52:23:d0 root@controller The key’s randomart image is: […]

kubernetes centos7.3

Last login: Thu Mar 1 00:45:37 2018 from 192.168.1.248 [root@clusterserver1 ~]# uname -a Linux clusterserver1.rmohan.com 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux [root@clusterserver1 ~]#

Master : 192.168.1.20 Worker1 : 192.168.1.21 Worker2 : 192.168.1.23 worker3 : 192.168.1.24

hostnamectl set-hostname ‘clusterserver1.rmohan.com’ exec bash setenforce 0 sed -i –follow-symlinks ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/sysconfig/selinux

[root@clusterserver1 […]