Docker 5

docker image를 tar 파일 save / load(화일 다운로드)

image 파일로 저장 docker save -o [파일명] [이미지명] [root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE gama_ubuntu0.92 latest 0f7a3cb33d65 24 hours ago 3.8GB gama_ubuntu0.91 latest c8ebd755ddcc 5 weeks ago 2.81GB ubuntu_in_apm2 0.97 cb81eca7b3ae 5 weeks ago 18.4GB unjin_jdk7_tomcat7 0.91 dd1c53af4fac 2 months ago 3.01GB [root@localhost ~]# docker save -o test.tar gama_ubuntu0.92:latest ..

Docker 2023.10.05

Docker Pull을 이용해 도커 이미지 갖고 오기

root@coforward:/home/coforward# docker pull ubuntu:latest 이미지 확인 docker images root@coforward:/home/coforward# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest 5a81c4b8502e 5 weeks ago 77.8MB hello-world latest 9c7a54a9a43c 3 months ago 13.3kB docker pull 명령어는 docker hub에 있는 이미지를 받아서 build까지 수행 현재는 이미지가 빌드 되어 있는 상태이고 컨테이너로 만들어서 실행을 시킨다. docker run -t [REPOSITORY] root@coforward:/..

Docker 2023.08.07

Docker 사용법

http://www.docker.com ** docs http://docs.docker.com http://hub.docker.com ** 다운로드 docker pull httpd ** host와 컨테이너 포트 연결 docker run -p 80:80 httpd ** 정상적으로 다운로드 되었는지 확인 docker images httpd ** run : 컨테이너 실행 docker run image httpd ** 프로세스 확인 docker ps docker ps -a ** 새로운 컨테이너 실행 docker run --name ws2 httpd ** 컨테이너 중지 docker stop ws2 ** 컨테이너 실행 docker start ws2 ** 컨테이너 로그 확인 (옵션 : -f 실시간 확인) docker..

Docker 2021.11.04