[OCI]wireguard install(ft. docker)
# Virtualation/Public Cloud2024. 5. 1. 12:30[OCI]wireguard install(ft. docker)

docker-composeversion: "3"services: wireguard: image: linuxserver/wireguard container_name: wireguard cap_add: - NET_ADMIN - SYS_MODULE environment: - PUID=1001 - PGID=1001 - TZ=Asis/Seoul - SERVERPORT=51820 #optional - PEERS=10 #optional - PEERDNS=auto #optional volumes: - ./config:/config - /lib/modules:/lib/modules ports: ..

[OCI]docker install
# Virtualation/Public Cloud2024. 4. 30. 15:15[OCI]docker install

도커설치ubuntu@ddogan:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -ubuntu@ddogan:~$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"ubuntu@ddogan:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgubuntu@ddogan:~$ sudo apt update..

docker-compose update
# Virtualation/Docker2024. 4. 28. 12:10docker-compose update

immich를 빌드할려고 보니 아래와 같이 에러발생하여 컴포즈 업데이트 진행![darksharavim]docker-compose up -d ERROR: The Compose file './docker-compose.yml' is invalid because: 'name' does not match any of the regexes: '^x-' You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or o..

도커 iptables 차단룰 추가
# Virtualation/Docker2024. 4. 23. 07:30도커 iptables 차단룰 추가

## 호스트에서는 아래 차단룰이 먹힘 ## 하지만 도커 컨테이너에서는 안먹힘 [darksharavim]iptables -D INPUT -p tcp --dport 8888 -j DROP ## 도커 컨테이너에 차단룰을 적용할려면 아래처럼 ## [darksharavim]iptables -I DOCKER-USER -p tcp --dport 8888 -j DROP ## 멀티포트 설정 ## [darksharavim]iptables -I DOCKER-USER -p tcp -m multiport --dports 8888,9999 -s 1.1.1.1 -j ACCEPT [darksharavim]iptables -I DOCKER-USER -p tcp -m multiport --dports 8888,9999 -j DROP h..

watchtower(ft. 컨테이너 자동 업데이트)
# Virtualation/Docker2024. 4. 19. 08:44watchtower(ft. 컨테이너 자동 업데이트)

## docker run ## [darksharavim]docker run --name="watchtower" -d --restart=always -v /var/run/docker.sock:/var/run/docker.sock -e TZ=Asia/Seoul containrrr/watchtower --interval 10 ## docker-compose ## version: "3" services: watchtower: image: containrrr/watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock https://containrrr.dev/watchtower/ Watchtowercontainrrr.dev https://svrforum.com..

image