After we installed Docker on the Jenkins server and started it, when we try to build, we get the following error: Solution: Add the user "jenkins" to the "docker" group: After that, the user "jenkins" will be able to work with Docker if he connects via SSH, but with Jenkins job there will … Continue reading "FIX ERROR – Jenkins: dial unix /var/run/docker.sock: connect: permission denied"
Where, "XXXXXXXXXXX" - AWS Account ID, "us-east-1" - AWS Region
Example Docker Compose file for WordPress docker-compose.yaml
For a container with phpMyAdmin, you need to add a variable with an absolute path: The "location" block for Nginx (change the proxy path to yours): Now phpMyAdmin will be available along the path: https://artem.services/phpmyadmin/
This example shows how to run 2 JAR files in one container. As the base image we will use "phusion/baseimage" First you need to create startup scripts, for convenience, in the example they will be called "start-first.sh" and "start-second.sh", in them we describe the launch of JAR files, for example start-first.sh start-second.sh … Continue reading " Docker – Multiple processes in one container"
In order to change the owner of the copied files in the container, it is necessary to add the key "--chown" to the "COPY" command Example:
In this example, there are 3 servers with Docker installed on it. If docker is not installed, you can see the installation here. There will be one manager and two workers: Master - manager (IP: 220.127.116.11) Slave_1 - worker (IP: 18.104.22.168) Slave_2 - worker (IP: 22.214.171.124) Required ports for Docker Swarm to work: 2376 and … Continue reading "Docker Swarm over TLS"
All steps are relevant for distributions with systemd (tested on CentOS 7 and Ubuntu 18.04) We look at the Docker launch command: Ubuntu 18.04 has a different path, "/lib/systemd/system/docker.service" We get something similar: Now create the "override.conf" file, just enter: We insert the following there:
CentOS 7: Install the necessary utilities: Add the Docker repository to install the current version: Install Docker: