본문 바로가기
728x90
반응형

Infra/Docker_K8S43

docker login root@template:~# docker login -u 계정명 Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded root@template:~# cat .docker/config.json { "auths": { " 2022. 7. 30.
docker login root@template:~# docker login -u 계정명 Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded root@template:~# cat .docker/config.json { "auths": { " 2022. 7. 30.
Docker 테스트 1 ########### Quiz (소요시간: 15~20분) ############ volume name: dbfile 사용자 정의 네트워크 이름: wordpress_net 컨테이너 이름: mysqldb 사용할 이미지: mysql dbfile volume 이 적용될 디렉토리: /var/lib/mysql 컨테이너 환경변수 MYSQL_ROOT_PASSWORD: rootpass MYSQL_DATABASE: wpdb MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress 컨테이너 이름: web 컨테이너 이미지: wordpress 컨테이너 port number: 80 호스트의 접속할때의 port number: 8080 컨테이너 환경변수 WORDPRESS_DB_HOST: mysqldb W.. 2022. 7. 30.
HP교육센터-도커 네트워크 종류 docker0 가 브릿지 root@template:~# docker network ls NETWORK ID NAME DRIVER SCOPE 4e58507f187f bridge bridge local b036b136d435 host host local 9281c2aadc78 none null local none : 네트워크 연결 안함 rmac -> docker ps -a --network host : 네트워크 타입 지정. host타입은 물리적 컴퓨터의 네트웍을 그대로 사용하겠다. 별도의 네임스페이스를 만들지 않겠다. host 타입은 프롬프트 변화가 거의 없다. root@template:~# docker run -it --name net2 --network host centos [root@template /.. 2022. 7. 30.
728x90
반응형