[환경 구축] docker 1.boot2docker에서 5시에 하고 싶은 거.
8885 단어 Dockerboot2docker
컨디션
결론
docker1.5
환경을 준비할 수 있습니다.boot2docker upgrade
docker stats
해봤어요docker1.5가 나왔다
brew update
brew upgrade docker boot2docker
1.4.1
.1.4.1
요?boot2docker ssh
1.3.0
입니까?낡았다.% boot2docker ssh
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/
_ _ ____ _ _
| |__ ___ ___ | |_|___ \ __| | ___ ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__| < __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
boot2docker: 1.3.0
1. docker@boot2docker:~$ docker version
Client version: 1.3.0
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): c78088f
OS/Arch (client): linux/amd64
Server version: 1.3.0
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): c78088f
홈brew 버전이 업그레이드 됐는데.
% brew upgrade docker boot2docker
Error: docker 1.4.1 already installed
Error: boot2docker 1.4.1 already installed
boot2docker restart
홈brew와 다른 관리는 버전 업그레이드가 필요합니다.
delete
따라서 기존 환경에 영향을 미칠 수 있음## dockerのVM削除
% boot2docker delete
## docker vmのダウンロード
% boot2docker download
Latest release for boot2docker/boot2docker is v1.5.0
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.5.0/boot2docker.iso
to /Users/xxx/.boot2docker/boot2docker.iso
%
% boot2docker init
% boot2docker up
Waiting for VM and Docker daemon to start...
......................oooooooooooooooooooooo
Started.
Writing /Users/xxx/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/xxx/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/xxx/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.
boot2docker ssh
% boot2docker ssh
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/
_ _ ____ _ _
| |__ ___ ___ | |_|___ \ __| | ___ ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__| < __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Docker version 1.5.0, build a8a31ef
1. docker@boot2docker:~$ docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
docker1.해보다
Stats
의 기능을 해보고 싶어요.boot2docker
1.4.1boot2docker ssh
docker에서 작업하지 않으면 명령이 없습니다.위에 있지만.
docker@boot2docker:~$ docker --help | grep stats
stats Display a live stream of one or more containers' resource usage statistics
boot2 docker 자체 버전 업그레이드
% boot2docker upgrade
Backing up existing docker binary...
Downloading new docker client binary...
Success: downloaded https://get.docker.com/builds/Darwin/x86_64/docker-latest
to /usr/local/bin/docker
The old version is backed up to ~/.boot2docker.
Backing up existing boot2docker binary...
Downloading new boot2docker client binary...
Success: downloaded https://github.com/boot2docker/boot2docker-cli/releases/download/v1.5.0/boot2docker-v1.5.0-darwin-amd64
to /usr/local/bin/boot2docker
The old version is backed up to ~/.boot2docker.
Latest release for boot2docker/boot2docker is v1.5.0
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.5.0/boot2docker.iso
to /Users/xxx/.boot2docker/boot2docker.iso
Waiting for VM and Docker daemon to start...
...........oooo
Started.
Writing /Users/xxx/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/xxx/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/xxx/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.
% boot2docker version
Boot2Docker-cli version: v1.5.0
Git commit: ccd9032
boot2 docker에서 docker stats 사용 가능
% docker stats
docker: "stats" requires a minimum of 1 argument. See 'docker stats --help'.
일어서다
자화자찬하다에서 동작 확인
docker pull ume3/docker-ubuntu-monit-log
docker stats
% docker stats $(docker ps -q)
## 表示し続ける
CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O
05050378f39a 0.32% 96.52 MiB/1.961 GiB 4.81% 1.266 KiB/648 B
Reference
이 문제에 관하여([환경 구축] docker 1.boot2docker에서 5시에 하고 싶은 거.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ume3_/items/72005fec0f4b677e8ddb텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)