주 메뉴 열기

wwiki β

바뀜

Docker cli

368 바이트 추가됨, 2020년 10월 16일 (금) 23:50
attach
==attach==
컨테이너에 접속Attach local standard input, output, and error streams to a running container
$ sudo docker attach [컨테이너명]
==build==
$ sudo docker build -t [이미지명] . == builder ==Manage builds. Remove build cache $ docker builder prune == checkpoint == $ docker checkpoint create  $ docker checkpoint ls [컨테이너]  $ docker checkpoint rm
==cp==
$ docker cp [container name]:[container 내부 경로] [host 파일경로]
== volume ==
도커를 사용하다보면 더이상 사용하지 않는 컨테이너와 이미지들이 저장공간을 필요없이 차지하게 된다. 이런 데이터들을 한 번에 정리할 수 있는 명령어.
$ docker system prune --all --force
 
== config ==
Create a config from a file or STDIN
$ docker config create [config] [file]
 
$ docker config inspect [config]
== update ==
편집
2,431