0. joyent docker 생성
- my.joyent.com 에서
create image > docker > search > pull image > download > spec 설정 > done
1. docker client 설치
docker image 에 접속하기 위해서는 (다른 인스턴스를 생성하여 or 본인 PC)
docker client 를 설치하여야 한다
~# apt-get update
~# apt-get install docker.io
~# ln -sf /usr/bin/docker.io / usr/local/bin/docker
2. docker client 설정
- joyent docker shell 다운로드
~# curl -O https://raw.githubusercontent.com/joyent/sdc-docker/master/tools/sdc-docker-setup.sh
- shell 실행
~# bash sdc-docker-setup.sh https:/{{조이엔트_리전}}.api.joyent.com {{계정명}} {{ssh_key}}
example : bash sdc-docker-setup.sh https:eu-ams-1.api.joyent.com mrsense /home/mrsense/.ssh/mrsense.pem
- joyent 계정 설정
export DOCKER_CERT_PATH=/root/.sdc/docker/mrsense
export DOCKER_HOST=tcp://eu-ams-1.docker.joyent.com:2376
export DOCKER_CLIENT_TIMEOUT=300
export DOCKER_HTTP_TIMEOUT=300
export DOCKER_TLS_VERIFY=1
3. docker client 명령어 실행
- docker ps // 기존 joyent 위에 생성된 docker instance 받아오기
- docker exec -it {{joyent_docker_instance_명}} bash // joyent_docker_instance 에 접속하기
참고
- https://apidocs.joyent.com/docker