Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12027

Docker compose cannot start Ubuntu images which are relying on individual localization.

    Details

      Description

      In opposite to the Alpine images does the file /etc/timezone already exist and hence the bind mount from the Docker host fails.

      [root@docker zabbix-docker]# docker-compose -f docker-compose_v2_ubuntu_pgsql_latest.yaml up -d
      Creating zabbixdocker_db_data_pgsql_1
      Creating zabbixdocker_zabbix-java-gateway_1
      Creating zabbixdocker_db_data_mysql_1
      Creating zabbixdocker_zabbix-snmptraps_1
      Creating zabbixdocker_mysql-server_1
      Creating zabbixdocker_postgres-server_1
      Creating zabbixdocker_zabbix-server_1
      
      ERROR: for zabbix-server  Cannot start service zabbix-server: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/etc/timezone\\\" to rootfs \\\"/var/lib/docker/overlay/2e0c2367d1d2cc04c0f70f63ba72f5885de2ebad051309ca23fd47840a44b84a/merged\\\" at \\\"/var/lib/docker/overlay/2e0c2367d1d2cc04c0f70f63ba72f5885de2ebad051309ca23fd47840a44b84a/merged/etc/timezone\\\" caused \\\"not a directory\\\"\""
      : Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
      ERROR: Encountered errors while bringing up the project.
      [root@docker zabbix-docker]#
      

      Removing the file from the Ubuntu images does the trick to me:

      --- SNIP --- Dockerfile --- SNAP ---
      
      RUN rm -f /etc/timezone
      
      --- SNAP --- Dockerfile --- SNIP ---
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              okkuv9xh Marc
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: