scottlang
MacOS M2 Docker linux/amd64 및 Dell tools 설치 본문
Docker image 생성
#docker pull --platform linux/x86_64 centos
Centos image 확인
#docker images (centos 확인)
Centos 접속 시 공유폴더 설정(파일 옮기기)
#docker run -it -v /Users/scott.k/Downloads/util:/mnt--p latform linux/x86_64 centos bash
공유폴더 없이 바로 접속
#docker run -it centos bash
Centos pkg & racadm install
#yum install net-tools wget update
#wget https://dl.dell.com/FOLDER09667202M/1/Dell-iDRACTools-Web-LX-11.1.0.0-5294_A00.tar.gz
🌕CentOS 8 EOS 로 인해 CentOS 8 Mirror site 가 vault 로 전환되어 Mirror site 를 못 찾아 발생되는 문제🌕
#sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
#sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d CentOS-Linux-*
#yum repolist & dnf repolist
컨네이너 스냅샷 (스냅샷 안할 시 PKG & 설정 모두 초기화 됨)
#docker commit 2875ad74a213(컨테이너 ID) dell(지정할 이름)
#docker images
Docker 컨테이너 시작
#docker start 2875ad74a213(컨테이너 ID)
Docker 컨테이너에서 특정 명령어 실행
#docker exec -it 2875ad74a213 /bin/bash /opt/dell/srvadmin/sbin/racadm
image 접속
#docker run -it dell bash
컨테이너 접속
#docker run -it 2875ad74a213(컨테이너 ID)