Untitled

  1. 클론 해서 full clone으로 만들기가 먼저
  2. 먼저 apt-get install -y nginx (엔진엑스 설치)
  3. sudo apt-get update
  4. curl -ssL https://get.docker.com/ | bash (하고 docker -v 해서 버전 확인)
  5. docker run httpd:latest (httpd 최신 버전 이미지 다운)
  6. docker run nginx:latest (nginx 최신 버전 이미지 다운)
  7. docker ps -a 해서 지금 동작 중인 거 확인 (-a 명령어는 전체 보여주기)
  8. docker rm -f xxx이름 (이름은 랜덤으로 나옴)
  9. docker login sunghothegamebird ( 내 아이디랑 비번)

Untitled

Untitled

  1. apt-get install -y unzip (wget은 httpd 다운 받을 때 딸려와서 unzip 만 다운 받기!)

  2. root@ubuntu:~# mkdir /testdocs

  3. cd .. 해서 상위로 이동하고 ls 해보면 내가 만든 디렉토리 보임

    Untitled

  4. **cd testdocs 들어가서 여기에 이미지 다운 받을거 wget https://www.free-css.com/assets/files/free-css-templates/download/page283/lodge.zip**

  5. ls 해서 확인해보고 unzip 탭 쳐서 압축 풀기

    Untitled