[lxc-users] Dotted container names now invalid?
Stéphane Graber
stgraber at ubuntu.com
Tue Oct 6 10:48:43 UTC 2015
That's a change we had to make with 0.19.
As the container name is set as the container hostname and may be
included in DNS records through the use of DHCP, we needed it to comply
to both hostname and DNS records specifications.
We used the most restrictive set of criteria for both hostnames and DNS
records from all operating systems we may want to be running LXD on at
some point.
This results in the following rule:
- Hostname must be between 1 and 63 characters in length
- The character set is alpha numberical characters and hyphens
- Hostname may not started with a digit or an hyphen
- Hostname may not end with an hyphen
We realize it's pretty restrictive but that way we can ensure that those
names will always work, regardless of what operating system you're using
as the client or the server.
On Tue, Oct 06, 2015 at 12:00:39PM +0200, Bostjan Skufca wrote:
> Mark, you are probably talking about lxD, not lxC, right?
>
> b.
>
>
> On 6 October 2015 at 07:36, Mark Constable <markc at renta.net> wrote:
>
> > lxc v0.19 on Ubuntu 15.10 host.
> >
> > ~ lxc launch wily abc
> > Creating abc done.
> > Starting abc done.
> >
> > ~ lxc launch wily abc.lxc
> > Creating abc.lxc error: Invalid container name
> >
> > The 2nd one above used to work.
> >
> > Why are dotted domain-like container names now invalid?
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151006/c79bbffe/attachment.sig>
More information about the lxc-users
mailing list