Build and publish docker image with a CI/CD
I’m experimenting with Jenkins and I’m starting to like it. In this page, I’m going to demonstrate how to configure Jenkins to build docker image and push it to my registry automatically.
Continue reading “Automate docker image build and push”
CoreOS is a lightweight OS with docker. Here is how to install it on qemu-kvm, aka Virtual Machine Manager.
Continue reading “CoreOS – the container Linux”
Red Hat is offering a few official docker images for RHEL8. One can now use or build images based on the latest operating system from Red Hat. Here is how to do it in 3 simple steps
Continue reading “Run RHEL8 on docker with Red Hat UBI image”
Here are some quick steps to deploy a sshd docker container. It will be based on the official CentOS 7 image from docker hub. It can be used as a light-weight ssh jump server.
Continue reading “Deploy a sshd docker container”
CoreOS seems to be gaining momentum. It happens to be available on Azure so I spun up an instance and tried.
Once it’s up, ssh to it and then launch a ubuntu docker instance
[bash light=”true”]xpk-core01 ~ # docker run -t -i ubuntu /bin/bash
[email protected]:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Install something to it and then commit it to disk
[bash light=”true”][email protected]:/# apt-get install mysql-server
[email protected]:/# exit
xpk-core01 ~ # docker commit cf1c4da1b078 coreos/mysql[/bash]
Then it’s ready to run mysql as a docker app. Proxy port 3306 to this docker instance.
[bash light=”true”]xpk-core01 ~ # docker run -p 3306:3306 -d coreos/mysql mysqld_safe[/bash]
Other useful commands:
[bash light=”true”]docker ps
docker stop <docker id>
docker attach <docker id>[/bash]