Compose: Relax restrictions on service names

Created on 5 Jun 2015  路  8Comments  路  Source: docker/compose

Now that we're not relying on a strict container name format, we should be able to allow more characters in service names, as has often been requested (see #799, #869, #941, #1300, #1384).

Any good reason we can't allow _.- now?

kinfeature

Most helpful comment

:+1: I'll finally be able to build my

a_.--.__.--.__.--.__.--.__.--.__.--.__.--.__.--._ and 127.0.0.1:443 containers :D

All 8 comments

:+1: I'll finally be able to build my

a_.--.__.--.__.--.__.--.__.--.__.--.__.--.__.--._ and 127.0.0.1:443 containers :D

Also relevant: allowed characters in image tags, since those are also based on service name. Seems to be the same chars though (tags.go).

+1

Is there anything new here? Will this change be part of the next RC or is it already baken into the current one?

1.3 is in code freeze, so this will not be in the next release.

Is there anything happening with support on this?
In this comment https://github.com/docker/compose/issues/472#issuecomment-91252147 it's mentioned that there should be some support for this in 1.3.

I'm using 1.3 and it doesn't seem to be any different. Will there be a 1.3.1 or will we need to wait till 1.4 till anything other than [a-z0-9] is allowed for reasons of service/container/host compatibility/bug?

This won't be in 1.3, or any 1.3.x release. 1.4 is the likely target.

Closed by #1624.

Was this page helpful?
0 / 5 - 0 ratings