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

บทความ

กำลังแสดงโพสต์จาก กันยายน, 2020

ทดลอง 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)