Skip to content

Instantly share code, notes, and snippets.

View taking's full-sized avatar
🐈
Focusing

taking taking

🐈
Focusing
View GitHub Profile

Vagrant

Prerequisites

  • CPU supports hardware virtualization Check not '0' (egrep -c '(vmx|svm)' /proc/cpuinfo)
  • Virtualbox (apt install virtualbox)
  • Vagrant (apt install vagrant)

Tip

Pipeline

repo pull/push
Access Token 발급

image image

.gitlab-ci.yaml

Docker Registry - Docker Hub Pull Through Mirror

Prerequisites

  • docker
  • docker-compose
mkdir -p registry/auth
docker run \
  --entrypoint htpasswd \
package main
import (
"errors"
"fmt"
"log"
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/openstack"
"github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/keypairs"

윈도우에서 ssh pem 키 권한 문제 발생 시

icacls.exe key.pem /reset
icacls.exe key.pem /grant:r %username%:(R)
icacls.exe key.pem /inheritance:r

확인 방법

apt install jq -y

TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)

curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest

image