docker rmi $(docker images | egrep -wv 'nginx|httpd|mysql|redis|alpine|ubuntu|centos' | awk '{print $3}')(도커 특정 이미지를 제외 한 이미지 삭제) 이미지 용량 최대한 적게 만들기 (관리 가능하도록, 용량이 0인 scratch 는 관리 불가)vi dockerfileFROM ubuntu:22.04 RUN apt-get update RUN apt-get install -y gcc COPY src/hello.c /tmp WORKDIR /tmp RUN gcc -o hello-world hello.c CMD ["/tmp/hello-world"] vi hello.c#include int main() { printf..
- vargant 설치vargant 에서 boxs 는 이미지를 의미vargant 설치 후 vagrant versionvagrant box listhttps://portal.cloud.hashicorp.com/vagrant/discover/generic/ubuntu2204vagrant box add generic/ubuntu2204virtualbox 선택 How to use this box with VagrantStep 1Option 1: Create a Vagrantfile and initiate the boxvagrant init generic/ubuntu2204 --box-version 4.3.12vagrantfile 수정 config.vm.network "private_network", ip..
