Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downcase container image name to avoid invalid format #3

Closed
dkapanidis opened this issue May 4, 2015 · 0 comments
Closed

Downcase container image name to avoid invalid format #3

dkapanidis opened this issue May 4, 2015 · 0 comments

Comments

@dkapanidis
Copy link
Member

When the directory where Dockerfile resides contains upper-case characters and they are transformed to image name it is an invalid repository name.

To avoid this when inferring settings the directory name should be downcased to map it to a valid repository name.

Example below:

➜  git clone https://github.com/Runnable/dockerfiles
Cloning into 'dockerfiles'...
remote: Counting objects: 1092, done.
remote: Total 1092 (delta 0), reused 0 (delta 0), pack-reused 1092
Receiving objects: 100% (1092/1092), 9.33 MiB | 1.28 MiB/s, done.
Resolving deltas: 100% (296/296), done.
Checking connectivity... done.
➜  cd dockerfiles
➜  captain build
[CAPTAIN] No configuration found [captain.json captain.yaml captain.yml] - inferring values
[CAPTAIN] Building image spiddy/UTlPL1-f2W1TAAAW:latest
API error (500): Invalid repository name (UTlPL1-f2W1TAAAW), only [a-z0-9-_.] are allowed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant