Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Distributed Tracing System
- Service Mesh
- redis cluster
- kubernates
- jpa auto increment
- sidecar patern
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill: #0000ff"/> </svg>
- high availabillty
- redis ha
- intelij spring boot devtools
- spring cloud zuul
- Istio
- MySQL
- sidecar
- spring boot ssl verify skip
- intelij devtools
- spring boot hot swapping
- spring cloud load balancer
- <iframe src="http://erea.tistory.com/attachment/cfile21.uf@997995485B2F785A3292EE.svg"></iframe>
- Spring Cloud Bus
- tracing tool
- Spring Cloud Config
- msa 4.0
- spring boot jks
- spring boot ssl
- java static resources
- Spring boot
- spring boot 2.0 ssl
- spring cloud api gateway
- spring boot http client
Archives
- Today
- Total
erea
centos7 docker systemctl 권한 얻기 본문
docker로 centos7 이미지를 빌드하다보면 시스템권한이 없어서 답답한경우가 많다
Failed to get D-Bus connection: No connection to service manager. 이런 메시지...
물론 stage나 production환경에서의 권한은 어느정도 제약을 두고 사용해야 겠지만
개발자환경에서는 시스템권한은 당연히 넣어주는것이 좋다.
docker run --privileged=true -p 80:80 -v %cd%/:/var/www/html -v /etc/localtime:/etc/localtime --restart=always -privileged=true -d -it centos:7 /usr/sbin/init
위와 같이 sbin을 넣어주게되면 시스템권한을 획득하게된다.
물론 privileged는 true줘야되며 이렇게 하면 cgroup을 볼륨잡아줄 필요도없어진다.
참 centos는 여러모로 귀찮은 이미지인거같다..
'devops > docker' 카테고리의 다른 글
docker registry native basic auth (0) | 2018.07.16 |
---|---|
centos7 service script 사용 (0) | 2018.07.01 |
docker 환경구축 (0) | 2017.12.14 |
docker 설치시 hyper-v 오류시 (0) | 2017.12.14 |
vagrant (0) | 2016.09.30 |
Comments