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:
When I try to execute a command inside the Docker container with Jenkins, the following error appears: Solution: Use instead: following:
An example deployment in Docker Swarm from Jenkins using stack deploy. Jenkinsfile:
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: 1.1.1.1) Slave_1 – worker (IP: 1.1.2.1) Slave_2 – worker (IP: 1.1.2.2) 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: