Development/Docker

기존에 사용 중인 서버에는 python 3.7 버전이 깔려있다. 그러면 도커 안 깔고.. 사용해도 될듯한데 특정 버전을 업그레이드해야 하는데 기존에 운영 중인 다른 서비스나 환경에 영향을 미치면 안 되기 때문에 도커를 사용하려고 한다. 설치 전에 시스템 요구 사항을 확인해야 한다. https://docs.docker.com/desktop/install/linux-install/ Install Docker Desktop on Linux Install Docker on Linux with ease using our step-by-step installation guide covering system requirements, supported platforms, and where to go next. docs..
더보기 개발용 서버를 셋팅하기 위해 도커 연습해 보는중.. 우분투 검색 및 설치 docker search ubuntu docker search ubuntu를 입력하면 목록이 나오는데, 순서대로 이미지 이름 / 설명 / 깃허브스타 / 공식 발행 / 자동화이다. 나는 딱히 특정한 버전이 필요한 건 아니여서 바로 ubuntu를 설치했다. 이미지 실행 및 접속 docker run으로 이미지를 실행할 수 있으며, --name 옵션으로 이름을 지정할 수 있다. docker run -it --name 'bv_ubuntu' ubuntu /bin/bash -it 옵션이란? 챗gpt에게 물어봤음ㅎ 굉장히 친절하고 자세하다 -it 옵션으로 대화형 셸이 있는 컨테이너에서 운영체제를 실행하므로, 컨테이너 내에서 명령을 실행하고..
환경 : mac os 맥에서 컨테이너 설치 후 실행하기 실행중인 컨테이너 목록 확인 docker ps 로 현재 실행 중인 컨테이너 목록을 볼 수 있다. ps 뒤에 -a 옵션을 주면 모든(?) 목록을 볼 수 있다. (모든 목록인지, 과거 실행 내역인지 다시 확인 후 수정하기 갑자기 기억안남 ) docker ps docker ps -a 컨테이너 실행 docker start [NAMES] docker start web_server docker ps을 입력했을 때 나온 NAMES를 입력해준다. 컨테이너 접속 docker exec -it [CONTAINER ID] /bin/bash 접속하고 나면 hostname 이 바뀐다. root@[CONTAINER ID]:/# 버전 확인 # cat /etc/issue Debi..
설치할 버전 CentOS Linux 7 (Core) Linux 3.10.0-1160.el7.x86_64 PHP 7.4.16 (cli) / Zend Engine v3.4.0 SQL*Plus: Release 21.0.0.0.0 Apache/2.4.51 (Unix) cmd(명령 프롬프트)를 실행한다. 아래 명령어로 검색할 수 있다. docker search centos 나는 centos 7을 설치할거라서 버전을 지정해서 다운받았다. docker pull centos:7.9.2009 container 생성 (create) docker create -i -t --name centos centos:7 설치한 centos7의 이름을 'centos'로 지정해주었다. 이름은 rename 명령어로 변경할 수 있다. doc..
#20221215 시작 설치환경 windows 10 도커설치 아래 링크를 접속하여 docker를 다운받는다. https://www.docker.com/ Docker: Accelerated, Containerized Application Development Docker is a platform designed to help developers build, share, and run modern applications. We handle the tedious setup, so you can focus on the code. www.docker.com 설치 완료 후 재부팅하면 끝 ! 실행하면 아래와 같은 화면이 뜬다.
곽진돔
'Development/Docker' 카테고리의 글 목록