본문 바로가기

728x90

docker

우분투에서 figlet과 lolcat을 함께 사용하여 컬러풀한 텍스트 아트를 만드는 방법 우분투에서 figlet과 lolcat을 함께 사용하여 컬러풀한 텍스트 아트를 만드는 방법 figlet은 ASCII 아트 텍스트를 생성하는 도구이고, lolcat은 터미널에 색상을 적용하는 도구입니다. 1. 도커(Docker)를 사용하여 우분투 컨테이너를 실행합니다. docker run -it --rm --platform linux/amd64 anti1346/ubuntu2204:latest bash 2. Ubuntu에 Figlet과 lolcat을 설치합니다. sudo apt-get update sudo apt-get install -y figlet lolcat figlet 명령어의 주요한 옵션 -f, --font: 특정 폰트를 지정합니다. 다양한 폰트가 Figlet 패키지에 포함되어 있으며, 해당 폰트의 .. 더보기
Docker Buildx를 사용하여 다중 아키텍처 이미지를 빌드하는 방법 Docker Buildx를 사용하여 다중 아키텍처 이미지를 빌드하는 방법 테스트 환경 $ docker --version Docker version 24.0.2, build cb74dfc Docker Desktop 설정 Docker Desktop을 실행한 후, Docker Desktop 메뉴를 열고 "Settings"를 선택합니다. "Settings"에서 "Docker Engine" 탭을 선택하고 experimental 옵션을 추가합니다. "experimental": true 다중 아키텍처 이미지 빌드 buildx 활성화된 상태 docker buildx $ docker buildx Usage: docker buildx [OPTIONS] COMMAND Extended build capabilities wit.. 더보기
docker proxy 설정하는 방법(환경 변수 구성) docker proxy 설정하는 방법(환경 변수 구성) 폐쇄망 인터넷망 비고 도커 데몬 프록시 서버 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 프록시 서버 지정하기 전에는 아래와 같이 타임아웃 발생 $ docker search ubuntu Error response from daemon: Get "https://index.docker.io/v1/search?q=ubuntu&n=25": dial tcp 52.1.184.176:443: i/o timeout Configuring environment variables 1. /etc/systemd/system/docker.service.d 디렉토리 생성 mkdir /etc/sys.. 더보기
도커 컴포즈 설치(docker-compose install) 도커 컴포즈 설치(docker-compose install) 도커 컴포즈 최신 버전 확인 : https://github.com/docker/compose/releases $ curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4 v2.15.1 도커 컴포트 v2 최신 버전 설치 sudo curl -sSL "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4).. 더보기
docker nettools docker nettools docker run -it --rm --name nettools -h nettools anti1346/ubuntu-nettools:latest >docker run -it --rm --name nettools -h nettools anti1346/ubuntu-nettools:latest root@nettools:~$ date Wed Jan 25 06:31:23 UTC 2023 docker run -it --rm --net=host --cap-add net_admin anti1346/ubuntu-nettools:latest >docker run -it --rm --net=host --cap-add net_admin anti1346/ubuntu-nettools:latest roo.. 더보기
Docker를 사용하여 Redis 클러스터(predixy)를 설정하는 구성하는 방법 Docker를 사용하여 Redis 클러스터(predixy)를 설정하는 구성하는 방법 구성도 predixy, redis-cluster 컨테이너로 구성 git clone git clone https://github.com/anti1346/predixy-redis-cluster.git 레디스 네트워크 생성 docker network create --gateway 172.24.0.1 --subnet 172.24.0.0/16 redis-net docker-compose up cd predixy-redis-cluster docker-compose up -d 로그 출력 docker-compose logs -f 레디스 클러스터 정보 (predixy) redis info redis-cli -h localhost -c -.. 더보기
[원도우] 윈도우11 docker 설치(WSL2 설치) 윈도우11 docker 설치(WSL2 설치) 원도우 버전 정보 확인 winver wsl --install Linux용 Windows 하위 시스템 사용 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart Virtual Machine 기능 사용 dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 컴퓨터 재부팅 WSL2를 기본 버전으로 설정 wsl --set-default-version 2 WSL2 우분투 설치하기 Linux 배포 목록 확인 wsl --list --online 우분투 설치 ws.. 더보기
애플 맥북 실리콘 M1에서 도커 컨테이너 실행 시 오류 애플 맥북 실리콘 M1에서 도커 컨테이너 실행 시 오류 The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 해당 오류는 이미지 플랫폼이 호스트 플랫폼과 일치하지 않을 때 발생합니다. 예를 들어, linux/amd64 플랫폼의 이미지를 linux/arm64/v8 플랫폼의 호스트에서 실행하려고 할 때 이 오류가 발생할 수 있습니다. 이 문제를 해결하기 위해 다음 중 하나를 시도할 수 있습니다. 1. 호스트 플랫폼과 일치하는 이미지 사용: 호스트의 플랫폼에 맞는 이미지를 사용해야 합니다. 예를 들어, linu.. 더보기

728x90