Learn and Be Curious

3

Cloud/docker2017. 10. 18. 09:31


inspect 위에는 image 또는 container


container면 뒤에 런타임 정보가 더 붙는다










[Volume]





위방법은 잘안씀



unmanaged volume :  관리가 잘 안됨






3번째 방법 권장 : volume을 먼저 만들고 매핑하자 (office)


댕글링볼륨 지우기 (옵션사용 또는 prune)



[공유볼륨]









볼륨을 지울때 -fv 옵션을 사용해도 해당 볼륨을 참조하는 컨테이너가 있다면 안지워진다.








'Cloud > docker' 카테고리의 다른 글

docker for linux fundimental  (0) 2018.04.12
kubernetes  (0) 2018.03.26
Kuber  (0) 2017.10.19
네트워크  (0) 2017.10.18
docker 레지스트리  (0) 2017.10.17

이미지를 배포하는 방법

1. 레지스트리

=> 궁극적으로는 레지스트리가 있어야 한다.


2. tar 파일 (임시적인 방편)





docker history 로 레이어를 볼 수 있다.



ctrl+p => ctrl+q

종료하지 않고 나옴


살아있음




[컨테이너를 stateful 하게 쓰는 방법]

1. commit

  but, 일반적인 방법이 아님





2. volume을 사용

- 일반스토리지를 쓴다 (layered filesystem말고)

마이나스 v (-v) 옵션을 쓴다.



-------------------------------------------------------------------------------------


exec : 연결 + 실행

attach : 연결만













[commit]








-v 옵션으로 다시 죽이고 띄워도 홈페이지는 열린다 (p161)










[Docker File]

- 각각의 Instruction은 레이어가 된다 (MAINTAINER 제외 : 연락처정보)

-






inpect 위에 image/container

container 면 런타임정보가 추가적으로 더 있다




'Cloud > docker' 카테고리의 다른 글

docker for linux fundimental  (0) 2018.04.12
kubernetes  (0) 2018.03.26
Kuber  (0) 2017.10.19
네트워크  (0) 2017.10.18
3  (0) 2017.10.18

geth

dev/Blockchain2017. 9. 14. 13:21

C:\Program Files\Geth>geth account new

WARN [09-14|13:18:58] No etherbase set and no accounts found as default

Your new account is locked with a password. Please give a password. Do not forget this password.

Passphrase:

Repeat passphrase:

Address: {a31bef5ee1e5c957f844c2ec05ae8c06c5c30300}


C:\Program Files\Geth>geth account list

Account #0: {a31bef5ee1e5c957f844c2ec05ae8c06c5c30300} keystore://C:\Users\myung-note\AppData\Roaming\Ethereum\keystore\UTC--2017-09-14T04-20-43.152354500Z--a31bef5ee1e5c957f844c2ec05ae8c06c5c30300



MEW 기존 계좌 연동시


 geth account import <keyfile>


  • Open Notepad & paste the private key
  • Save the file as nothing_special_delete_me.txt at C:
  • Run the command, geth account import C:\nothing_special_delete_me.txt
  • This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don't forget it.
  • After successful import, delete nothing_special_delete_me.txt
  • The next time you open the Ethereum Wallet application, your account will be listed under "Accounts".





C:\Program Files\Geth>geth --rpc

INFO [09-14|13:59:23] Starting peer-to-peer node               instance=Geth/v1.6.7-stable-ab5646c5/windows-amd64/go1.8.3

INFO [09-14|13:59:23] Allocated cache and file handles         database=C:\\Users\\myung-note\\AppData\\Roaming\\Ethereum\\geth\\chaindata cache=128 handles=1024

INFO [09-14|13:59:23] Initialised chain configuration          config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Metropolis: 9223372036854775807 Engine: ethash}"

INFO [09-14|13:59:23] Disk storage enabled for ethash caches   dir=C:\\Users\\myung-note\\AppData\\Roaming\\Ethereum\\geth\\ethash count=3

INFO [09-14|13:59:23] Disk storage enabled for ethash DAGs     dir=C:\\Users\\myung-note\\AppData\\Ethash                          count=2

INFO [09-14|13:59:23] Initialising Ethereum protocol           versions="[63 62]" network=1

INFO [09-14|13:59:23] Loaded most recent local header          number=1089 hash=35dc91…a5c5b1 td=24549220618594

INFO [09-14|13:59:23] Loaded most recent local full block      number=0    hash=d4e567…cb8fa3 td=17179869184

INFO [09-14|13:59:23] Loaded most recent local fast block      number=877  hash=804af6…459b30 td=18700125589408

INFO [09-14|13:59:23] Starting P2P networking

INFO [09-14|13:59:25] UDP listener up                          self=enode://7646f5c1cebb3816f2b66b2517487d9a0277e21e6eb4d6d93a21a3f2661c4fc8e3ef07538b0aa6959b672116e6fe3372785bce57b8314575ca34415f2eb7d984@[::]:30303

INFO [09-14|13:59:25] RLPx listener up                         self=enode://7646f5c1cebb3816f2b66b2517487d9a0277e21e6eb4d6d93a21a3f2661c4fc8e3ef07538b0aa6959b672116e6fe3372785bce57b8314575ca34415f2eb7d984@[::]:30303

INFO [09-14|13:59:25] IPC endpoint opened: \\.\pipe\geth.ipc

INFO [09-14|13:59:25] HTTP endpoint opened: http://127.0.0.1:8545





'dev > Blockchain' 카테고리의 다른 글

Ethereum mining at Linux (Ubuntu)  (0) 2017.06.28
개발 모드에서 스마트 컨트랙(체인코드) 개발  (0) 2017.05.21
Hyperledger Fabric Docker 이미지 받기  (0) 2017.05.21
Go  (0) 2017.05.21