dockerode

(★ 4,937)

Docker + Node = Dockerode (Node.js module for Docker's Remote API)

  • .eslintignore
  • .eslintrc
  • .gitignore
  • .npmignore
  • .travis.yml
  • LICENSE
  • package-lock.json
  • package.json
  • README.md
  • Vagrantfile

🚀 설치 가이드

1. 코드 내려받기
git clone https://github.com/apocas/dockerode

깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.

cd dockerode

방금 내려받은 프로젝트 폴더 안으로 이동합니다.

2. Docker

쉬움 추천
사전 준비물
  • Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
  • Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
There is also support for [HTTP connection hijacking](https://docs.docker.com/engine/api/v1.45/#tag/Container/operation/ContainerAttach),

이 명령어를 터미널에 그대로 입력해 실행하세요.

* `create_options` - (optional) Options used for container creation. Refer to the [DockerEngine ContainerCreate documentation](https://docs.docker.com/reference/api/engine/version/v1.52/#operation/ContainerCreate) for the possible values

이 명령어를 터미널에 그대로 입력해 실행하세요.

* `start_options` - (optional) Options used for container start. Refer to the [DockerEngine ContainerStart documentation](https://docs.docker.com/reference/api/engine/version/v1.52/#operation/ContainerStart) for the possible values

이 명령어를 터미널에 그대로 입력해 실행하세요.

And here is one more complex example using auto-remove and Docker network.

이 명령어를 터미널에 그대로 입력해 실행하세요.

`docker-modem` already base64 encodes the necessary auth object for you.

이 명령어를 터미널에 그대로 입력해 실행하세요.

터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.

이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.

3. Node.js

쉬움
사전 준비물
  • Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
  • Node.js npm 명령어를 쓰려면 Node.js가 설치되어 있어야 합니다. LTS(장기지원) 버전을 추천합니다.
npm install

package.json에 명시된 라이브러리들을 내려받아 설치합니다.

npm start

개발/실행 서버를 켭니다.

명령어 실행 후 터미널에 나타나는 주소(보통 http://localhost:3000 형태)를 브라우저에서 열어보세요.
// repository documentation