본문 바로가기

반응형

Docker

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.. 더보기
[url] 도커 허브(docker hub) 도커 허브(docker hub) https://hub.docker.com/ Docker Hub Container Image Library | App Containerization Build 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 더보기
[원도우] 윈도우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.. 더보기
[리눅스] 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.. 더보기
[리눅스] 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 --p.. 더보기
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 .. 더보기
Simple HTTP File Upload Server Simple HTTP File Upload Server 간단한 파일 업로드 및 다운로드 서버 1. docker-compose 파일 생성 vim docker-compose.yml version: '3' services: upload-server: image: julienmeerschart/simple-file-upload-download-server container_name: upload-server hostname: upload-server restart: unless-stopped environment: SERVER: "http://fb.sangchul.kr" volumes: - ./result:/app/uploads expose: - 3000/tcp ports: - 3000:3000 이 서비스는 호.. 더보기

728x90
반응형