Docker 에서 Image 의 layer ID로 왜 Content digest를 쓰는지 모르겠습니다ㅜㅠ

thsalsgh01의 이미지

1. Docker 1.10 부터 CAS(Content Addressable Storage) 도입을 Image 의 layer 에 대해서 content digest
라는 ID로 차용을 하고 있는데, Docker doc를 아무리 읽어봐도 모르겠어서 여쭤봅니다ㅜㅜ

1.1. 왜 data retrieve 가 빨라졌는지..

1.2. 어떤 면에서 보안성이 높다는 말인지
(data 가 저장된 실제 위치와 몇개의 복사본이 있는지를 사용자에게 숨길수 있다고
하는데, 말만으로는 이해가 안가는데. 좀 구체적으로 설명을 해줄수 있는 분 계신가요
어차피 CAS도 hash index 와 실제 저장된 위치가 mapping 되는 table 이 있는게
아닌가요? 거기가 뚫린다면 다른 Storage 방식과 다를게 없어보이는데
보안이 높다는 말이 이해가 안되서요....)

1.3. Content digest 쓰면 뭐가 좋은건지 장점을 모르겠습니다
(제가 생각한건 그냥 content 가 같으면 같은 hash 가 나오게 도와주는 것이므로,
Docker Hub 와 같은 global 한 repository 에서 쓰는 ID 를 공유하니깐
중복 layer 를 다운받지 않게 해주는거 말고는 다른 장점이 있는지 모르겠습니다...
위에 언급한 거 말고는요)

2. CAS(Content Addressable Storage) 라는 개념이
- 1.2 번과 유사한 질문이긴 한데 directory 에 저장해 놓고 찾는 개념이 아니라
CAS가 content 에 기반하여 찾는 다는 개념이라고 하는데, 제 구글링 실력이 부족한 것과
영어 능력이 부족해서 이해가 잘 안되네요...ㅜ

3. 결국 그럼, content 를 가지고 hashing 을 하는 거면 hash-collision 을 생각할 수 밖에 없는데
Docker docs 에서는 Image ID collision 에 대해서 built-in 방식으로 충돌을 회피 한다고만 나와있는데
구체적으로 어떤방식인지 어디를 봐야 하나요..?
(혹시 일반적인 open-addressing 이나 close-addressing 일까요??)

601k의 이미지

저도 CAS가 소개될때부터 의문점이 들어서 여기저가 찾아보고 있는데 이유를..모르겠...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.