Skip to content

Instantly share code, notes, and snippets.

@liante0904
Last active March 23, 2019 08:57
Show Gist options
  • Save liante0904/6b64e96e06bb29d3a59e377392768470 to your computer and use it in GitHub Desktop.
Save liante0904/6b64e96e06bb29d3a59e377392768470 to your computer and use it in GitHub Desktop.
CheatSheet

Docker cheetsheet

Docker 튜토리얼 정리

install

  • docker ---version
  • docker info

installation Test

  • docker run hello-world
  • docker image ls
  • docker container ls --all

docker tomcat 첨부파일 외부 복사

  • docker cp 89eded5a864a:/usr/local/tomcat/webapps /volume2/docker/tomcat8

  • docker exec -i -t trans /bin/bash

transmission setup

  • docker run --name=transmission -v /volume2/docker/transmission/config:/config -v /volume2/docker/transmission/downloads:/downloads -v /volume2/docker/transmission/watch:/watch -e PGID=0 -e PUID=0 -e TZ=Asia/Seoul -p 8888:9091 -p 54321:51413 -p 54321:51413/udp linuxserver/transmission

트랜스미션 셋업 완료 명령어

docker create --name=transmission -v /volume2/docker/transmission_linuxServer/config:/config -v /volume2/docker/transmission_linuxServer/downloads:/downloads -v /volume2/docker/transmission_linuxServer/watch:/watch  -e PGID=0 -e PUID=0  -e TZ=Asia/Seoul  -p 9092:9091 -p 54322:51413  -p 54322:51413/udp  linuxserver/transmission

image rm

docker rmi

container rm

docker rm $container_ID

docker container connect

docker exec -it $container_ID /bin/bash docker run -d -p 631:631 --name cupsd --net=host jacobalberty/cups docker run -d -p 631:631 -v /Users/seunghoonshin/Documents/run/dbus:/var/run/dbus --name cupsd --net=host olbat/cupsd

docker tomcat 첨부파일 외부 복사

  • docker cp 89eded5a864a:/usr/local/tomcat/webapps /volume2/docker/tomcat8

  • docker exec -i -t trans /bin/bash

transmission setup

  • docker run --name=transmission -v /volume2/docker/transmission/config:/config -v /volume2/docker/transmission/downloads:/downloads -v /volume2/docker/transmission/watch:/watch -e PGID=0 -e PUID=0 -e TZ=Asia/Seoul -p 8888:9091 -p 54321:51413 -p 54321:51413/udp linuxserver/transmission

트랜스미션 셋업 완료 명령어

docker create --name=transmission -v /volume2/docker/transmission_linuxServer/config:/config -v /volume2/docker/transmission_linuxServer/downloads:/downloads -v /volume2/docker/transmission_linuxServer/watch:/watch  -e PGID=0 -e PUID=0  -e TZ=Asia/Seoul  -p 9092:9091 -p 54322:51413  -p 54322:51413/udp  linuxserver/transmission

Docker tomcat 빌드 과정 참고

cupsd(Print Docker Test command)

docker run -d -p 631:631 --name cupsd --net=host jacobalberty/cups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment