본문 바로가기

Docker8

docker network container를 만들면 각자 격리되고, 통신을 위한 network interface를 할당받는다 host의 veth interface가 생성되고 container 내의 interface 와 연결한다 host의 veth interface 는 docker0 이라는 interface 와 연결된다 위 과정은 컨테이너를 만들때마다 반복된다 명령어 doker run [option] [image] # option -d : background 실행 -p : port mapping --expose : 문서전용, 접속불가 --network : network 설정 --net-alias : network 이름 설정 bridge network에서만 사용가능 docker network create [option] [name].. 2023. 10. 5.
docker compose를 활용한 wordpress 설치 [Docker] - docker, kubernetes docker, kubernetes * ubuntu 22.04 / ip 192.168.2.10/24 / hostname ubuntu sudo -i DOCKER_USER=ubuntu DOCKER_COMPOSE_VERSION=2.17.3 #의존성 설치 apt update -y && apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release #docker가 제공하 y7712.tistory.com * 초기 설정 및 테스트 mkdir wptest cd wptest cat > docker-compose.yml # docker-compose.yml version: "3.. 2023. 10. 5.
docker compose 예제 실습 [Docker] - docker, kubernetes docker, kubernetes * ubuntu 22.04 / ip 192.168.2.10/24 / hostname ubuntu sudo -i DOCKER_USER=ubuntu DOCKER_COMPOSE_VERSION=2.17.3 #의존성 설치 apt update -y && apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release #docker가 제공하 y7712.tistory.com nano docker-compose.yml # docker-compose.yml version: "3" services: nginxproxy: image: nginx:1.. 2023. 10. 5.
docker, minikube 기초설정, 예제 * ubuntu 22.04 / ip 192.168.2.10/24 / hostname ubuntu sudo -i DOCKER_USER=ubuntu DOCKER_COMPOSE_VERSION=2.17.3 #의존성 설치 apt update -y && apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release #docker가 제공하는 공개키를 신뢰하도록 설정 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --yes --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg #docker 공식 레파지토리 등.. 2023. 10. 4.