1. 29 Aug, 2018 23 commits
  2. 24 Aug, 2018 2 commits
  3. 23 Aug, 2018 2 commits
  4. 22 Aug, 2018 1 commit
  5. 21 Aug, 2018 4 commits
  6. 20 Aug, 2018 1 commit
  7. 17 Aug, 2018 5 commits
  8. 16 Aug, 2018 2 commits
    • David Johnson's avatar
    • David Johnson's avatar
      When user supplies external Docker image or Dockerfile, validate them. · fdcd1b4d
      David Johnson authored
      We try to emulate the standard Docker CLI's image handling.  Thus, if
      user specifies an image like 'ubuntu', we turn that into
      'ubuntu:latest'.  If user does not supply a registry host, we try
      'registry.hub.docker.com'.  If they do not specify a registry host or
      specify a registry host that is either registry-1.docker.io or
      registry.hub.docker.com, and their image does not contain a /, we
      prepend 'library/' to it (I *think* this is the right heuristic, but
      it's inference).
      For Dockerfiles, we must be able to download it, and it must contain a
      line matching ^\s*FROM (i.e. a valid FROM instruction, which all
      Dockerfiles must have).  We try to support DOS-mode textfiles too, but
      only ASCII.
      Might need to loosen these checks.