Archive for the ‘Docker’ Category

Raspberry Pi OS (64 bit) beta – and Docker with arm64v8 images

Mittwoch, Februar 3rd, 2021

   Raspberry Pi OS (64 bit) beta – test version

# apt-get update -y
# apt-get full-upgrade -y
# apt-get update -y
# rpi-update
# uname -a
Linux rpi-iot-jsho-docker-41 5.10.11-v8+ #1399 SMP PREEMPT Thu Jan 28 12:14:03 GMT 2021 aarch64 GNU/Linux
# apt-get install docker.io
# docker run –rm -it –name one –hostname iot-jsho-docker-41 debian /bin/bash
root@iot-jsho-docker-41:/#
root@iot-jsho-docker-41:/# apt-get update
Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://deb.debian.org/debian buster/main arm64 Packages [7737 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main arm64 Packages [261 kB]
Get:6 http://deb.debian.org/debian buster-updates/main arm64 Packages [7832 B]
Fetched 8244 kB in 4s (1923 kB/s)
Reading package lists… Done

root@rpi-iot-jsho-docker-41:~# docker ps –all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8d3c29a332c6 debian „/bin/bash“ About a minute ago Up About a minute one
root@rpi-iot-jsho-docker-41:~# docker logs one
root@iot-jsho-docker-41:/# apt-get update
Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://deb.debian.org/debian buster/main arm64 Packages [7737 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main arm64 Packages [261 kB]
Get:6 http://deb.debian.org/debian buster-updates/main arm64 Packages [7832 B]
Fetched 8244 kB in 4s (1923 kB/s)
Reading package lists… Done
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
# docker pull nginx
Using default tag: latest
latest: Pulling from library/nginx
f8be76fcf206: Pull complete
56d3a31c1999: Pull complete
61e3132252c9: Pull complete
703916d761e9: Pull complete
53e819da52d9: Pull complete
Digest: sha256:10b8cc432d56da8b61b070f4c7d2543a9ed17c2b23010b43af434fd40e2ca4aa
Status: Downloaded newer image for nginx:latest
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 9b016c5aa4e8 3 weeks ago 126MB
# docker container create nginx
92c53af1bb67c43c284e04cd5f815f0f0bcc92d6fb4ae06c92d3146582c8c7a4
ginx
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
92c53af1bb67 nginx „/docker-entrypoint.…“ 3 minutes ago Created hopeful_gauss
# docker start 92c53af1bb67
92c53af1bb67
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
92c53af1bb67 nginx „/docker-entrypoint.…“ 4 minutes ago Up 34 seconds 80/tcp hopeful_gauss
# docker exec -it 92c53af1bb67 ls
bin docker-entrypoint.d home mnt root srv usr
boot docker-entrypoint.sh lib opt run sys var
dev etc media proc sbin tmp
# docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
19d658f3801a: Pull complete
28bdea3dddb1: Pull complete
8ae0c92402f4: Pull complete
Digest: sha256:703218c0465075f4425e58fac086e09e1de5c340b12976ab9eb8ad26615c3715
Status: Downloaded newer image for ubuntu:latest
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 306e6575a9e4 13 days ago 65.7MB
nginx latest 9b016c5aa4e8 3 weeks ago 126MB
# docker run –tty –interactive  –name ubuntu-iot-jsho-01 –hostname ubuntu-iot-jsho-01 ubuntu /bin/bash
root@ubuntu-iot-jsho-01:/# uname –a
Linux ubuntu-iot-jsho-01 5.10.11-v8+ #1399 SMP PREEMPT Thu Jan 28 12:14:03 GMT 2021 aarch64 aarch64 aarch64 GNU/Linux
# docker start ubuntu-iot-jsho-01
ubuntu-iot-jsho-01
# docker ps –all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e3e053d07eaa ubuntu „/bin/bash“ About a minute ago Up 5 seconds ubuntu-iot-jsho-01
# docker exec -it ubuntu-iot-jsho-01 /bin/bash
# docker stop ubuntu-iot-jsho-01
ubuntu-iot-jsho-01

Raspberry Pi – install docker.io & network in a deep dive mode on Ubuntu Server 20.10

Sonntag, Januar 31st, 2021
# apt-get update -y
# apt-get full-upgrade -y
# hostnamectl set-hostname rpi-iot-jsho-tools-02
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy
# apt-get install docker.io
# systemctl enable –now docker
# docker –version
Docker version 19.03.13, build 4484c46
# docker run hello-world
Unable to find image ‚hello-world:latest‘ locally
latest: Pulling from library/hello-world
256ab8fe8778: Pull complete
Digest: sha256:31b9c7d48790f0d8c50ab433d9c3b7e17666d6993084c002c2ff1ca09b96391d
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the „hello-world“ image from the Docker Hub.
(arm64v8)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
# apt-get install net-tools
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 190 kB of archives.
After this operation, 831 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports groovy/main arm64 net-tools arm64 1.60+git20180626.aebd88e-1ubuntu2 [190 kB]
Fetched 190 kB in 0s (581 kB/s)
Selecting previously unselected package net-tools.
(Reading database … 102236 files and directories currently installed.)
Preparing to unpack …/net-tools_1.60+git20180626.aebd88e-1ubuntu2_arm64.deb …
Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu2) …
Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu2) …
Processing triggers for man-db (2.9.3-2) …
# ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:70ff:fe71:23cc prefixlen 64 scopeid 0x20<link>
ether 02:42:70:71:23:cc txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 220 (220.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.141 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2003:d4:c739:7b00:dea6:32ff:fe59:3fcc prefixlen 64 scopeid 0x0<global>
inet6 fe80::dea6:32ff:fe59:3fcc prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:59:3f:cc txqueuelen 1000 (Ethernet)
RX packets 48604 bytes 54391330 (54.3 MB)
RX errors 0 dropped 1736 overruns 0 frame 0
TX packets 12141 bytes 1158378 (1.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 136 bytes 11496 (11.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 136 bytes 11496 (11.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# docker network ls
NETWORK ID NAME DRIVER SCOPE
b772d441d3cf bridge bridge local
a4f5207ad27d host host local
84d120f5b7b0 none null local
(–rm) Clean up
(-it ) For interactive processes (like a shell) you must use -i -t together
in order to allocate a tty for the container process
(–name) Name
# docker run –rm -it –name one –hostname iot-jsho-docker-01 ubuntu /bin/bash
root@iot-jsho-docker-01:/#
# docker network inspect bridge
[
{
„Name“: „bridge“,
„Id“: „b772d441d3cf33324d6d3032cc9c4243e703b749944f3c245f5d6253cac2e8fa“,
„Created“: „2021-01-30T13:56:43.857160155Z“,
„Scope“: „local“,
„Driver“: „bridge“,
„EnableIPv6“: false,
„IPAM“: {
„Driver“: „default“,
„Options“: null,
„Config“: [
{
„Subnet“: „172.17.0.0/16“
}
]
},
„Internal“: false,
„Attachable“: false,
„Ingress“: false,
„ConfigFrom“: {
„Network“: „“
},
„ConfigOnly“: false,
„Containers“: {},
„Options“: {
„com.docker.network.bridge.default_bridge“: „true“,
„com.docker.network.bridge.enable_icc“: „true“,
„com.docker.network.bridge.enable_ip_masquerade“: „true“,
„com.docker.network.bridge.host_binding_ipv4“: „0.0.0.0“,
„com.docker.network.bridge.name“: „docker0“,
„com.docker.network.driver.mtu“: „1500“
},
„Labels“: {}
}
# docker network create jsho-docker –subnet=10.0.0.0/8
48185ed15c92be9fd7ae0df3d1a986d480cfd2644ee9e68f21ac6e863ca4ac4b
# ifconfig
br-48185ed15c92: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 10.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255
ether 02:42:48:9d:6c:e3 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:70ff:fe71:23cc prefixlen 64 scopeid 0x20<link>
ether 02:42:70:71:23:cc txqueuelen 0 (Ethernet)
RX packets 6963 bytes 375349 (375.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14409 bytes 21774962 (21.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.141 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2003:d4:c703:9e00:dea6:32ff:fe59:3fcc prefixlen 64 scopeid 0x0<global>
inet6 fe80::dea6:32ff:fe59:3fcc prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:59:3f:cc txqueuelen 1000 (Ethernet)
RX packets 631767 bytes 226948523 (226.9 MB)
RX errors 0 dropped 79612 overruns 0 frame 0
TX packets 52804 bytes 4512153 (4.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 226 bytes 20482 (20.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 226 bytes 20482 (20.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# docker network ls
NETWORK ID NAME DRIVER SCOPE
b772d441d3cf bridge bridge local
a4f5207ad27d host host local
48185ed15c92 jsho-docker bridge local
84d120f5b7b0 none null local
# docker network inspect jsho-docker
[
{
„Name“: „jsho-docker“,
„Id“: „48185ed15c92be9fd7ae0df3d1a986d480cfd2644ee9e68f21ac6e863ca4ac4b“,
„Created“: „2021-01-31T11:50:55.199543038Z“,
„Scope“: „local“,
„Driver“: „bridge“,
„EnableIPv6“: false,
„IPAM“: {
„Driver“: „default“,
„Options“: {},
„Config“: [
{
„Subnet“: „10.0.0.0/8“
}
]
},
„Internal“: false,
„Attachable“: false,
„Ingress“: false,
„ConfigFrom“: {
„Network“: „“
},
„ConfigOnly“: false,
„Containers“: {},
„Options“: {},
„Labels“: {}
}
]
# docker run –rm -it –name two –net jsho-docker –hostname iot-jsho-docker-02 ubuntu /bin/bash
root@iot-jsho-docker-02:/#
# docker network connect bridge two

Docker Snort 3.x – network intrusion detection system (NIDS) installation & config & logging & rule writing

Freitag, Januar 29th, 2021
# docker pull ciscotalos/snort3
# docker run –name snort3 -h snort3 -u snorty -w /home/snorty -d -it ciscotalos/snort3 bash
# docker exec -it snort3 bash
# docker kill snort3

Microsoft Windows Server 2019 – how to install Docker

Dienstag, Dezember 15th, 2020

   Install Docker in Microsoft Windows Server 2019 – let’s take a look at the steps required to install docker in Microsoft Windows Server 2019 this includes a few steps that need to be taken to get the containers feature enabled as well as installing Docker and the container images let’s look at the following steps

Install Windows Server 2019 containers feature
Install Hyper-V
Install DockerMsftProvider and latest Docker version
Pull Docker images
Run a Docker image

Docker Version 20.10 – release notes

Freitag, Dezember 11th, 2020

   Docker Version 20.10 – release notes

root@rpi-iot-jsho-docker-01:~# docker version
Client: Docker Engine – Community
Version: 20.10.0
API version: 1.41
Go version: go1.13.15
Git commit: 7287ab3
Built: Tue Dec 8 19:02:23 2020
OS/Arch: linux/arm
Context: default
Experimental: true
Server: Docker Engine – Community
Engine:
Version: 20.10.0
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: eeddea2
Built: Tue Dec 8 19:00:00 2020
OS/Arch: linux/arm
Experimental: false
containerd:
Version: 1.4.3
GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc:
Version: 1.0.0-rc92
GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
docker-init:
Version: 0.19.0
GitCommit: de40ad0
root@rpi-iot-jsho-docker-01:~#

Docker Official Image ‚MinIO‘ – to build high performance infrastructure for machine learning, analytics and application data workloads

Donnerstag, Dezember 10th, 2020
root@rpi-iot-jsho-docker-01:~# docker pull minio/minio
root@rpi-iot-jsho-docker-01:~# docker run -p 9000:9000 –name MinIO-01 -v /media/usb:/data -e „MINIO_ACCESS_KEY=<AccessKey>“ -e „MINIO_SECRET_KEY=<SecretKey>“ minio/minio server /data

root@rpi-iot-jsho-docker-01:~# docker ps –all
root@rpi-iot-jsho-docker-01:~# docker rm <CONTAINER>
root@rpi-iot-jsho-docker-01:~# docker stop <CONTAINER>
root@rpi-iot-jsho-docker-01:~# docker start <CONTAINER>

MinIO server supports rolling upgrades, i.e. you can update one MinIO instance at a time in a distributed cluster and this allows upgrades with no downtime. Upgrades can be done manually by replacing the binary with the latest release and restarting all servers in a rolling fashion. However we recommend all our users to use mc admin update from the client. This will update all the nodes in the cluster simultaneously and restart them as shown in the following command from the MinIO client (mc)

MinIO Client Complete Guide – https://docs.min.io/docs/minio-client-complete-guide.html

pi@rpi-iot-jsho-docker-01:~ $ wget https://dl.minio.io/client/mc/release/linux-arm/mc
pi@rpi-iot-jsho-docker-01:~ $ ./mc config host add myminio http://192.168.1.151:9000 <AccessKey> <SecretKey>
pi@rpi-iot-jsho-docker-01:~ $ ./mc admin update myminio
Server `myminio` updated successfully from 2020-12-03T05:49:24Z to 2020-12-10T01-54-29Z
pi@rpi-iot-jsho-docker-01:~ $ ./mc mb myminio/photos
pi@rpi-iot-jsho-docker-01:~ $ ./mc cp mc myminio/photos
pi@rpi-iot-jsho-docker-01:~ $ ./mc cp -r dst/* myminio/photos
pi@rpi-iot-jsho-docker-01:~ $ ./mc ls myminio/photos
pi@rpi-iot-jsho-docker-01:~ $ ./mc mirror src myminio/photos

Docker Official Image ‚PostgreSQL‘ – an object-relational database system provides reliability and data integrity

Mittwoch, August 26th, 2020

  Docker Official Image ‚PostgreSQL‘ – often simply „Postgres“ is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance. As a database server, its primary function is to store data, securely and supporting best practices, and retrieve it later, as requested by other software applications, be it those on the same computer or those running on another computer across a network

Raspberry Pi – Docker is a tool for creating deploying and running applications in containers

Montag, August 24th, 2020
# apt-get update -y
# apt-get upgrade -y
# curl -fsSL https://get.docker.com -o get-docker.sh
# chmod +x get-docker.sh
# ./get-docker.sh
# usermod -aG docker pi
# docker version
# docker info
# docker run hello-world

# docker run –name wordpress -d -p 80:80 waog/rpi-wordpress

Docker – I’ll give you comprehensive introduction

Dienstag, August 18th, 2020

Apache Guacamole – is a clientless remote desktop gateway & it supports standard protocols like VNC and RDP

Mittwoch, Dezember 11th, 2019

Apache GuacamoleInstallation with Docker – we call it clientless because no plugins or client software are required. Thanks to HTML5, once Guacamole is installed on a server all you need to access your desktops is a web browser

Docker Desktop Community 2.1.0.2 for Windows – contains a Kubernetes upgrade

Freitag, September 6th, 2019

Docker – warum die Zukunft im Container stattfindet

Dienstag, August 27th, 2019

Docker ‚ILIAS‘ – is the image for ILIAS with basic configuration (ILIAS Settings and MySQL Connection)

Donnerstag, Juni 13th, 2019

  Dockersturai/ilias

Docker Enterprise 3.0 – expands platform to drive high-velocity application innovation from the desktop to the cloud

Mittwoch, Mai 1st, 2019

Docker – Erstellung einer sicheren CI/CD Pipleline

Dienstag, Februar 19th, 2019