강의

멘토링

로드맵

Inflearn Community Q&A

goanho923749's profile image
goanho923749

asked

Building a CI/CD Pipeline using Jenkins

SSH Server Installation

ssh 서버 실행 에러

Written on

·

277

0

kex_exchange_identification: Connection closed by remote host

Connection closed by ::1 port 20022

이렇게 에러가 발생하는데 원인을 모르겠습니다

m1 입니다

kubernetesansiblejenkinssonarqubecicd

Quiz

What is the main role of AWS EC2 instances in cloud computing?

Source Code Version Control

Container image storage and management

Cloud-based scalable virtual server providing

Web Application Build Automation

Answer 1

0

Dowon Lee님의 프로필 이미지
Dowon Lee
Instructor

안녕하세요, 이도원입니다.

ssh-server 실행하실 때 아래 명령어로 실행해 보시기 바랍니다. 옵션이 추가되었는데, 강의 자료에도 반영해 놓도록 하겠습니다.

docker run --privileged --name docker-server -itd -p 10022:22 -p 8081:8080 -e container=docker  -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host edowon0623/docker-server:m1 /usr/sbin/init

감사합니다.

안녕하세요.

docker run 실행에서 추가된 옵션에 대해 설명을 해주실수 있을까요?
(볼륨에 :rw가 추가되었고, --cgroupns=host 이 추가된 것으로 보입니다)

[질문]

  • /sys/fs/cgroup 를 volume으로 설정하는 이유

    • -v /sys/fs/cgroup:/sys/fs/cgroup:rw

  • --cgroupns = host 를 추가해야하는 이유

(이하 문서 내용 발췌)
--cgroupns (API 1.41+)

cgroup namespace to use (host|private)
- 'host': Run the container in the Docker host's cgroup namespace
- 'private': Run the container in its own private cgroup namespace
- '': Use the cgroup namespace as configured by the default-cgroupns-mode option on the daemon (default)



감사합니다.

 

Dowon Lee님의 프로필 이미지
Dowon Lee
Instructor

안녕하세요, 이도원입니다. 아래 게시물에서 관련 답변 확인하실 수 있습니다.

https://www.inflearn.com/questions/646498

확인해 보니, 질문자님이 다시 올려 주신 글이었네요. ^^;

goanho923749's profile image
goanho923749

asked

Ask a question