ข้ามไปที่เนื้อหาหลัก

บทความ

Docker Crash Course

 https://www.youtube.com/watch?v=pg19Z8LL06w ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬ 0:00 - Intro and Course Overview 02:54 - What is Docker? 03:51 - What problems Docker solves in development and deployment process 11:38 - Virtual Machine vs Docker 17:19 - Install Docker 21:36 - Docker Images vs Containers 26:32 - Docker Registries 29:38 - Docker Image Versions 32:02 - Main Docker Commands - Pull and Run Docker containers 39:06 - Port Binding 42:50 - Start and Stop containers 46:54 - Private Docker Registries 48:11 - Registry vs Repository 49:09 - Dockerfile - Dockerize Node.js app 58:30 - Build Image 1:02:39 - Docker UI Client 1:03:39 - Overview: Docker in complete software development lifecycle 1:06:38 - Where to go from here

How to connect to a WireGuard VPN server from a Docker container

How to connect to a WireGuard VPN server from a Docker container – pedrolamas.com How to connect to a WireGuard VPN server from a Docker container I like to use Docker containers for pretty much everything I do, so I wanted to see if I could have a Docker container connect to a WireGuard  VPN  Server, and then have other containers share that same connection. Surprisingly, this is not only possible, but it is also amazingly easy to achieve! Preparation We will be using the  linuxserver/wireguard  Docker image. This image works in either WireGuard server or client mode, but we will be using it just as a client. For this post, I will focus on having the  VPN  connection isolated from the host system by using a custom bridge network. We will also be using  docker-compose  to maintain the full Docker stack. We will create a folder called “wireguard” that will store all the data from the container. Inside this folder we will place a file called “wg0.co...

script install docker AlmaLinux / Rocky Linux 8 System

 AlmaLinux / Rocky Linux 8 System Start the installation by updating AlmaLinux / Rocky Linux 8 system OS packages to the latest versions. sudo dnf -y update sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo : sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin sudo systemctl enable --now docker sudo usermod -aG docker $USER newgrp docker Confirm if you’re able to run any docker commands without sudo: $ docker --version Docker version 20.10.17, build 100c701

ทดลอง pull image จาก GitLab

ทดลอง pull image จาก GitLab ลบ image เก่าโดยการพิมพ์  $ docker rmi registry.gitlab.com/blacksourcez/gitlab-registry-demo ทำการ pull โดยคำสั่ง  $ docker pull registry.gitlab.com/blacksourcez/gitlab-registry-demo ลอง run container โดยใช้คำสั่ง  $ docker run -p 80:80 registry.gitlab.com/blacksourcez/gitlab-registry-demo เข้า url  http://0.0.0.0:80/  จะพบข้อความ “Hello, World!”   https://medium.com/ayuth/%E0%B9%80%E0%B8%81%E0%B9%87%E0%B8%9A-container-image-%E0%B9%83%E0%B8%99%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%A5%E0%B8%B0%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%80%E0%B8%88%E0%B8%84%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-gitlab-google-amazon-elastic-container-registry-%E0%B9%81%E0%B8%A5%E0%B8%B0-d94c7cd2e54a

git hub to git lab

Switching remote URLs from SSH to HTTPS Open  Terminal . Change the current working directory to your local project. List your existing remotes in order to get the name of the remote you want to change. git remote -v origin git@ hostname : USERNAME/REPOSITORY .git (fetch) origin git@ hostname : USERNAME/REPOSITORY .git (push) Change your remote's URL from SSH to HTTPS with the  git remote set-url  command. git remote set-url origin https:// hostname / USERNAME / REPOSITORY .git Verify that the remote URL has changed. git remote -v # Verify new remote URL origin https:// hostname / USERNAME/REPOSITORY .git (fetch) origin https:// hostname / USERNAME/REPOSITORY .git (push)