me hungry!
  • migrate to herdin.github.io
  • DEV TOOLS
    • IDE
      • VSCode
        • spring-boot maven config
  • Spring
    • default
      • IoC
      • resource
      • validation
      • data bind
      • SpringEL
      • DispatcherServlet
    • debug
      • mariadb connection time out - connection pool
  • Database
    • MariaDB
      • command history
  • LINUX
    • CentOS
      • install java
      • install, setting maven
      • install, setting vault
      • upgrade docker to docker-ce
  • WINDOW
    • Road to window docker
  • Arduino
    • default
    • SENSORS
      • dust sensor
        • GP2Y1010AU0F
      • humidity&temperature
        • DHT11
      • lcd
        • SKU DFR0009 - shield
    • debug
Powered by GitBook
On this page

Was this helpful?

  1. WINDOW

Road to window docker

WSL=Windows Subsystem for Linux

윈도우에서 VM 없이 도커를 돌려보자

준비물 Windows 10 1803 이상의 버전

  1. Windows 기능 켜기/끄기 에서 Linux 용 Windows 하위 시스템 체크

  2. Microsoft Store 에서 Ubuntu 설치/실행 또는 cmd > bash

  3. Ubuntu 계정/비밀번호 설정

WINDOW> bash
LINUX> sudo su -
LINUX> apt update //레파지토리 인덱스갱신
LINUX> apt -y upgrade //가능한 모든 패키지 업그레이드
LINUX> apt -y autoremove //불필요한 패키지 제거
LINUX> curl https://releases.rancher.com/install-docker/17.03.sh | bash //도커 17.03버전 설치
LINUX> apt install docker.io //위의 17.03으로 안받아지면 최신버전을 받아본다
LINUX> service docker start //도커데몬 시작
LINUX> docker pull nginx:latest //Nginx 이미지 받기
LINUX> docker images //도커이미지 확인
LINUX> docker run -d -p 8080:80 --name NginX nginx:latest //호스트의 8080포트를 컨테이너의80에 매핑하여 도커시작

localhost:8080 로 nginx 기동확인!

아까는 됐는데 왜 또 안되지...

Previousupgrade docker to docker-ceNextdefault

Last updated 6 years ago

Was this helpful?