목록Open Source/Docker (4)
IT Log
전제 조건 Docker Engine Install Compose # Docker Compose 최신 Stable Release 다운로드 curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose # 실행 권한 부여 chmod +x /usr/local/bin/docker-compose # Sybolic link ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose Compose 설치 확인 docker-compose --version 참조URL : https://d..
Supported playforms Platform x86_64 / amd64 ARM ARM64 / AARCH64 CentOS O O Debian O O O Fedora O O Raspbian O O Ubuntu O O O CentOS 요구 사항 CentOS 7 이전 버전 제거 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine Repository를 이용한 Install # yum-utils 패키지 설치 yum install -y yum-utils # Stable Repository 설정 y..
Docker Compose 작성 Dockerfile 작성 docker-compose.yml 작성 docker-compose 실행 Dockerfile Environment variables ADD COPY ENV EXPOSE FROM LABEL STOPSIGNAL USER VOLUME WORKDIR 파일 이름은 Default가 Dockerfile이고, 다른 이름으로 파일을 작성할 경우 나중에 경로를 입력할 때 파일명을 작성 Examples FROM [:] [AS ] ARG [=] ENV COPY RUN ### FROM postgres:9.6 ARG ARGUMENT=true ENV PLUGIN=v1.0.0 COPY ./file /usr/loca/copy/file RUN apt-get update \ && g..
docker run - docker실행 docker exec - container 내부 접속 docker images - docker image 리스트 docker ps - docker container 리스트 docker run 사용방법 docker run [OPTIONS] IMAGE [COMMAND] [ARG...] OPTIONS -d : Run container in background and print container ID -e : Set environment variables -h : Container host name -i : Keep STDIN open even if not attached --link : Add link to another container --name : Assign a..