목록docker (5)
jgwk
wsl hello-world 를 출력하는 예제 # deployment 생성 k apply -f https://k8s.io/examples/service/access/hello-application.yaml # deployment 조회 k get deployments hello-world k describe deployments hello-world # replicaset 조회 k get replicasets k describe replicasets # service 생성 k expose deployment hello-world --type=NodePort --name=example-service # service 조회 k describe service example-service # pod 조회 k ge..
자바캔: 도커 시작하기를 보고 따라 해봄 참조한 블로그 처럼 상세하게 적고는 싶은데 아직 저만큼 모르기도 하고 해본 흔적을 남겨서 나중에 잊어버렸을때 되새기는 용도로 작성 alias echo "alias d='docker'" >> ~/.bashrc 생각보다 docker 명령어 자체를 쓰는일이 드문거 같다. 줄임말을 주고 보니 안줘도 되지 싶다. run 커맨드: 새로운 컨테이너 docker run -d -p 8080:80 --name nginx \ --mount type=bind,src=/home/jgwk/test,dst=/usr/share/nginx/html \ nginx:latest \ : 연결줄 -d : 데몬으로 실행 -p : 호스트의 8080포트와 컨테이너의 80포트를 연결 --name : 이름 지..
새 이미지를 직접 만들기엔 아직 잘 모르니 이미 만들어져 있는 오라클 이미지 사용 22년 11월 도커 허브에 들어가보니 오라클 공식 이미지가 없다 누가 만들었는지도 모르는 이미지를 쓸 수는 없으니... 아쉽다 docker hub 에서 oracle 검색 Oracle Database Enterprise Edition 선택하고 동의하면 설치에 대한 설명 확인할 수 있음 오라클 이미지 실행 도커 이미지 다운로드 $ docker login $ docker pull store/oracle/database-enterprise:12.2.0.1 도커 이미지 실행 ora-jgwk 는 도커 이미지 이름으로 사용할 이름 $ docker run -d -it --name ora-jgwk -p 1521:1521 store/orac..
도커 다운로드 및 설치 도커 설정: wsl 연결 General > Use the WSL 2 Based engine 체크 Resources > WSL INTERGRATION > 설치된 wsl 배포판 체크 Kubernetes > Enable Kubernetes 체크 (Docker Desktop 내장 Kubernetes 사용) # bash 자동완성 패키지 설치 여부 확인 type _init_completion # 줄임말 echo "alias k='kubectl'" >> ~/.bashrc # 자동완성 echo "source