rhcos 란 openshift 클러스터에서 관리되는 전용OS rhcos 파일시스템 특징 /usr : OS바이너리, 라이브러리 저장소 , 읽기 전용이며 이를 변경하면 안됨 /etc, /boot, /var : 쓰기가 가능하지만, MCO만이 변경 가능 /var/lib/containers : 컨테이너 이미지 저장소
1. 부팅시 e 키 눌러서 수정 모드로 들어감 2. linux로 시작하는 줄 맨 끝에 rd.break 추가 후 ctrl + x 눌러서 저장후 빠져나오기 3. 아래 명령어 실행 # mount -o remount,rw /sysroot # chroot /sysroot # passwd # fixfiles onboot # exit # reboot 4. 재부팅 시 아래 같은 메시지가 출력되며 시간이 조금 소요된다
# nsenter nsenter라는 명령어는 namespace enter의 약어. 격리된 namespace에 진입하는 명령어. 1. centos 이미지로 test1 컨테이너 실행 [root@centos7 ~]# docker run -it --name test1 centos [root@a97f2864a314 /]# ctrl p+q 눌러서 빠져나오기 [root@centos7 ~]# [root@centos7 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a97f2864a314 centos "/bin/bash" 6 seconds ago Up 6 seconds test1 2. namespace pid 확인 [root@centos7 ~\]#..
docker registry 서버에 로그인 하는 명령 $ docker login $ docker login --help Log in to a Docker registry or cloud backend. If no registry server is specified, the default is defined by the daemon. Usage: docker login [OPTIONS] [SERVER] [flags] docker login [command] Available Commands: azure Log in to azure Flags: -h, --help Help for login -p, --password string password --password-stdin Take the password ..
1. docker 패키지 설치 # yum update -y # yum install docker docker-registry -y 2. docker 서비스 enable # systemctl enable docker --now # systemctl status docker 3. centos 이미지 다운로드 이미지 tag를 지정하지 않고 pull하면 dockerhub에 등록된 이미지중에서 latest 이미지로 다운된다 # docker pull centos 4. centos 이미지 컨테이너 실행 # docker run -it centos /bin/bash
# nova instance-list {instance_name} $ openstack server list +--------------------------------------+------+--------+-----------------------+------------+--------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------+--------+-----------------------+------------+--------+ | ace39066-7e60-49fa-99d6-a648f612c3ea | vm1 | ACTIVE | public=100.100.105.11 | ..