Jenkins Pipeline for building, testing and running Docker containers

Published on Author admin

Example Jenkins Pipeline for building, testing and running Docker containers. Ingredients: • Jenkinsfile - Pipeline specification • GitHub - source code repository (for app and Jenkinsfile) • DockerHub - container registry Required Jenkins plugins: • GitHub plugin • Docker Commons Plugin • Build With Parameters • Pipeline plugin Pipeline architecture schema:

Deploy Nextcloud containerized service using Docker and docker-compose

Published on Author admin

Template for deploying Nextcloud containerized service using Docker and docker-compose, you can use in on both x86_64 and ARM (32/64bit) architecture: https://github.com/openterprise/docker/blob/master/docker-compose-nextcloud.yml This template deploys Nextcloud with following setup: • application: Nextcloud • application server: Apache + PHP • database: MariaDB / PostgreSQL • cache: Redis • scheduler: crontab Requirements: • Docker • docker-compose

Working with kernel network namespaces created by Docker

Published on Author admin

To work with kernel network namespaces created by Docker create necessary symbolic link: ln -s /var/run/docker/netns  /var/run/netns List network namespaces: ip netns list Result will be similar to: # ip netns list 644c14147ad2 (id: 2) bb230cf5f65f (id: 1) e2772d19bfd0 (id: 0) Execute command inside network namespace: ip netns exec <namespace> <command> Example - listing network… Continue reading Working with kernel network namespaces created by Docker

CentOS 8 and Fedora 32 - make DNS working for Docker containers

Published on Author admin

In CentOS 8 and Fedora 32, by default DNS requests from Docker containers are being blocked by Firewalld. To make DNS working for Docker containers use below command (assuming that containers are using docker0 interface for networking): sudo firewall-cmd --zone=trusted --add-interface=docker0 --permanent sudo firewall-cmd --zone=trusted --add-interface=docker0