본문 바로가기

728x90
반응형

Docker

(62)
C264x200.fwebp.q85 consul 보안(security credentials) 설정 consul 보안(security credentials) 설정consul 컨테이너 실행docker run -it --rm -v ${PWD}/consul/certs:/consul/config/certs/ consul:latest /bin/sh--- docker container startcd /consul/config/certsconsul gossip 암호화 키 생성consul keygen$ consul keygenozAzxQlvUHL3Qr0hhW2ibUxSa4B+M6RDz2bTC8OOsN0=consul.hcl 설정vim /etc/consul.d/consul.hcl...# bootstrap_expectbootstrap_expect = 3# encrypt# Specifies the secret key to ..
C264x200.fwebp.q85 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..
C264x200.fwebp.q85 [url] 도커 허브(docker hub) 도커 허브(docker hub)https://hub.docker.com/ Docker Hub Container Image Library | App ContainerizationBuild and Ship any Application Anywhere Docker Hub is the world's easiest way to create, manage, and deliver your team's container applications.hub.docker.com
C264x200.fwebp.q85 윈도우11 docker 설치(WSL2 설치) 윈도우11 docker 설치(WSL2 설치)원도우 버전 정보 확인winverwsl --installLinux용 Windows 하위 시스템 사용dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartVirtual Machine 기능 사용dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart컴퓨터 재부팅 WSL2를 기본 버전으로 설정wsl --set-default-version 2WSL2 우분투 설치하기Linux 배포 목록 확인wsl --list --online우분투 설치wsl --install -d..
C264x200.fwebp.q85 애플 맥북 실리콘 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..
C264x200.fwebp.q85 [리눅스] dockerfile docker-php-ext-install, docker-php-ext-enable, docker-php-ext-configure 명령 dockerfile docker-php-ext-install, docker-php-ext-enable, docker-php-ext-configure 명령 php 8.1 도커 컨테이너 실행 docker run -it --rm php:8.1-fpm bash php 8.1 컨테이너에 설치되어 있는 기본 모듈 root@894e0cb82f31:/var/www/html# php -m [PHP Modules] Core ctype curl date dom fileinfo filter ftp hash iconv json libxml mbstring mysqlnd openssl pcre PDO pdo_sqlite Phar posix readline Reflection session SimpleXML sodium SPL s..
C264x200.fwebp.q85 docker centos 8 systemctl 실행(/sbin/init) centos 8 systemctl 실행(/sbin/init)도커 컨테이너 내에서는 systemctl 명령이 원래의 기대대로 작동하지 않습니다. 이는 컨테이너 내에서 systemd init 시스템이 실행되지 않기 때문입니다. 그러나 CentOS 8 도커 컨테이너 내에서도 대체 방법을 사용하여 서비스를 관리할 수 있습니다. CentOS 8 도커 컨테이너 내에서 서비스를 시작, 중지, 또는 재시작하기 위해 service 명령을 사용하거나 서비스의 init 스크립트를 직접 조작할 수 있습니다. 테스트 환경$ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)도커 컨테이너 실행docker run -it -d --cap-add=SYS_ADMIN --privi..
C264x200.fwebp.q85 AL2022(Amazon Linux 2022) 운영체제 AL2022(Amazon Linux 2022) 운영체제 AL2022(Amazon Linux 2022) Fedora를 업스트림으로 사용하는 AL2022는 패키지 안정성을 제공하기 위해 철저한 테스트를 거친 정식 배포판으로, 모든 필수 보안 업데이트를 통해 유지 및 관리됩니다 Amazon Linux 컨테이너로 실행 Docker Hub에서 Amazon Linux 컨테이너 이미지를 가져옵니다. - docker pull 명령을 사용하여 Amazon Linux 컨테이너 이미지를 가져옵니다. docker pull amazonlinux:2022 $ docker pull amazonlinux:2022 2022: Pulling from library/amazonlinux 1539c116c8b0: Pull complete ..

728x90
반응형