Dockerfile
nombre contenedores
- [a-zA-Z0-9][a-zA-Z0-9_.-]
- max. 30 caracteres
zona horaria
- crear volumenes a
/etc/localtime
,/etc/timezone
para que coincida con el host:
volumes: - "/etc/timezone:/etc/timezone:ro" - "/etc/localtime:/etc/localtime:ro"
- ejecución de comando en Dockerfile:
ENV TZ 'Europe/Andorra' RUN echo $TZ > /etc/timezone && \ apt-get update && apt-get install -y tzdata && \ rm /etc/localtime && \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ dpkg-reconfigure -f noninteractive tzdata && \ apt-get clean