docker Invalid port specification
Primary tabs
ERROR: for ..... Cannot create container for service web: invalid port specification: "583522"
ERROR: for ... Cannot create container for service web: invalid port specification: "583522"
ERROR: Encountered errors while bringing up the project.
Причина
Причина в том, что для портов ниже 60, докер воспринимает число после двоеточия как указание на систему счичления, цитата из документации:
When mapping ports in the HOST:CONTAINER format, you may experience erroneous results when using a container port lower than 60, because YAML parses numbers in the format xx:yy as a base-60 value. For this reason, we recommend always explicitly specifying your port mappings as strings.
Решение
Пишите в файле docker-compose.yaml не так:
ports: - 9721:80 - 9725:22
а так:
ports: - "9721:80" - "9725:22"
Источник решения: https://github.com/docker/compose/issues...
- Log in to post comments
- 1758 reads