도커 환경을 사용하여 과제를 진행하였는데, 남들 아무도 안생기는 오류가 내 컴퓨터에만 생겼었다 ! 하하
포트 스캐너 실습을 위한 더미 컨테이너 생성을 하고자 우분투 컨테이너 생성 파일을 실행시켰을 때, 아래와 같은 오류가 발생하였다.
이틀동안 계속 이 오류에만 매달리면서 학교와이파이가 아닌 핫스팟으로도 해보고, 도커 데스크탑도 지웠다 깔고, 도커 관련 설치 패키지 모두 재설치, chatGPT, Gemini 등등... 할 수 있는 모든걸 다 해봤는데도 똑같이 도돌이표 상황. 정말 50번 넘게 실행해본거 같다...
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
|
MAC@task2 % ./run_test_server.sh
> [3/4] RUN apt install openssh-server vsftpd apache2 net-tools -y: ... ... 34.40 Get:105 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 vsftpd arm64 3.0.5-0ubuntu1 [118 kB] 34.47 Err:42 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libcurl4 arm64 7.81.0-1ubuntu1.15
34.47 404 Not Found [IP: 185.125.190.36 80]
34.49 Fetched 42.7 MB in 33s (1290 kB/s)
34.49 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/c/curl/libcurl4_7.81.0-1ubuntu1.15_arm64.deb 404 Not Found [IP: 185.125.190.36 80]
34.49 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
Dockerfile:3
--------------------
1 | FROM ubuntu:jammy
2 | RUN apt update -y
3 | >>> RUN apt install openssh-server vsftpd apache2 net-tools -y
4 | COPY entrypoint.sh /entrypoint.sh
5 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt install openssh-server vsftpd apache2 net-tools -y" did not complete successfully: exit code: 100
View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/pwdrdcs8e31488sryf1cd9kwp
Unable to find image 'task2-tester:latest' locally
docker: Error response from daemon: pull access denied for task2-tester, repository does not exist or may require 'docker login'.
See 'docker run --help'.
Error: No such object: task2
|
cs |
오류 메시지를 읽어보면 105번째 줄 아래 명령에서 오류가 발생하는데, 이게 Dockerfile의
"RUN apt install openssh-server vsftpd apache2 net-tools -y" 부분에서 오류가 생겨, 이미지 파일을 생성할 수 없는 상태였다.
(다른 친구들 컴퓨터에서는 문제없이 잘 돌아갔었음.)
마침 연구실 세미나가 있던 날이라, 연구실 친구들에게 물어보니..
내가 운이 나쁜거라고 하더라..
네?!
학교 실습실 컴퓨터에서도, 모두 같은 파일을 다운받았는데 운이 없으면 몇몇 컴퓨터에서 실행 못하는 경우가 발생한댄다....
그래서 우짜노 상태였는데, 정말 착하고 좋은 친구가... 해결을 해줬다.
RUN apt-get install openssh-server vsftpd apache2 net-tools -y
"-get" 을 붙여줬더니, 해결이 됐다!
그냥 랜덤하게 apt에서 오류가 발생한거라서 apt-get을 해준거 같은데.. 나도 이게 고쳐진 정확한 이유는 모르겠다.
고맙다 친구야!
'[MAC]트러블슈팅&Tip' 카테고리의 다른 글
[MAC] Mac to Windows 원격접속하기 (Windows App 사용) (1) | 2025.04.07 |
---|---|
[MAC] VMware Fusion - Ubuntu 환경에서 공유폴더 사용 (0) | 2025.04.01 |
[MAC] M1/M2 VWware 설치 및 Ubuntu GUI 설치 (0) | 2025.03.10 |
맥 M1/M2 VirtualBox 다운로드 안될 때(Unsupported hardware architecture detected!) (0) | 2023.11.14 |