Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
Docker - Restrictions regarding naming container


I have questions regarding restrictions about naming containers. I search online and saw different issue and answers.

  1. what is the maximum characters number in naming container?
  2. which special characters are not allowed in docker container name? (e.g. '*', '$', ',', '_' ...)
about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

The characters allowed to represent a container name is represented by the regex : src code

// RestrictedNameChars collects the characters allowed to represent a name, normally used to validate container and volume names.
const RestrictedNameChars = `[a-zA-Z0-9][a-zA-Z0-9_.-]`

see #3138

And only the images name has a limited size of 30 chars.

about 4 years ago · Santiago Trujillo Relatório

0

Container names must start with an alphanumeric character and can then use _ . or - in addition to alphanumeric. [a-zA-Z0-9][a-zA-Z0-9_.-]+

I'm not sure there is a hard limit set for the length of a container name. You might run into some HTTP URL limits at some point as the name ends up in the path for a number of API calls.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda