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
The following example was taken as a Playbook. This Playbook runs on the “docker” host group, installs the necessary packages for Docker, adds the Docker repository, installs Docker, launches it and adds it to autorun. Also adds the user “artem” to the group “docker“ docker.yaml Apply Playbook:
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:
When I try to run a “docker login” on Ubuntu, the following error appears: Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY` Solution:
When I try to update the list of repositories in the Docker image based on “node: 8“, the following error appears: Err http://http.debian.net jessie-backports/main amd64 Packages Solution Dockerfile: