본문 바로가기
반응형

linux26

docker pull proxy 설정 참고 : docs.openshift.com/container-platform/3.4/install_config/http_proxies.html#proxying-docker-pull Working with HTTP Proxies | Installation and Configuration | OpenShift Container Platform 3.4 If your Git repository can only be accessed using a proxy, you can define the proxy to use in the source section of the BuildConfig. You can configure both a HTTP and HTTPS proxy to use. Both fields are .. 2020. 9. 18.
docker tar로 만들기, tar import 하기 # 기본 hello-world 도커 이미지 pull # docker pull imageName $ docker pull hello-world # hello-world 이미지 tar로 만들기 # docker save -o filename.tar imageName $ docker save -o hello-world.tar hello-world # hello-world.tar 로 restore-hello-world 이미지 생성 # docker import filename.tar imageName $ docker import hello-world.tar restore-hello-world 2020. 9. 16.
Docker arg와 env사용 방법 docker에서 arg와 env에 대한 사용 방법을 정리 arg : Dockerfile build시에 사용하는 변수 env : container 시작시에 사용하는 변수 env 옵션을 이용하여 docker를 이용하여 spring boot 실행시에 profile을 지정할 수 있다. 2020. 9. 16.
bash shell 실행 명령어 확인하기 출처 : http://mywiki.wooledge.org/BashFAQ/050 쉘을 생성해서 명령어를 실행할때 명령어를 확인 또는 출력을 위해서 명령어를 변수에 담는 경우가 있는데 명령어를 변수에 담게 되면 원하는대로 명령어가 실행되지 않는 경우가 있다. 명령어를 변수에 담지 않고 확인하는 방법 스크립트 실행 bash -x ./test.sh 스크립트 안에서 원하는 영역에서만 출력 #!/bin/bash A="echo hi" B="echo hello" C="$A && $B" echo $C // prints "echo hi && echo hello" set -x $C set +x echo "$A && $B" // prints "echo hi && echo hello" $A && $B #!/bin/bash A=.. 2020. 8. 20.
반응형