-
Incident report
-
Resolution: Won't fix
-
Major
-
None
-
3.4.4, 4.0.0alpha1
Steps to reproduce:
- Clone GitHub project:
[root@e3ee3b85b962 ~]# git clone https://github.com/zabbix/zabbix-docker.git Cloning into 'zabbix-docker'... remote: Counting objects: 4773, done. remote: Compressing objects: 100% (3/3), done. remote: Total 4773 (delta 4), reused 3 (delta 3), pack-reused 4767 Receiving objects: 100% (4773/4773), 668.76 KiB | 331.00 KiB/s, done. Resolving deltas: 100% (3149/3149), done. [root@e3ee3b85b962 ~]#
- Create and start containers via docker-compose:
[root@e3ee3b85b962 zabbix-docker]# docker-compose -f docker-compose_v2_alpine_pgsql_latest.yaml up -d
Result:
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 71, in main command() File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 121, in perform_command project = project_from_options('.', options) File "/usr/lib/python2.7/site-packages/compose/cli/command.py", line 37, in project_from_options override_dir=options.get('--project-directory'), File "/usr/lib/python2.7/site-packages/compose/cli/command.py", line 91, in get_project config_data = config.load(config_details) File "/usr/lib/python2.7/site-packages/compose/config/config.py", line 375, in load for config_file in config_details.config_files File "/usr/lib/python2.7/site-packages/compose/config/config.py", line 506, in process_config_file environment) File "/usr/lib/python2.7/site-packages/compose/config/config.py", line 497, in interpolate_config_section environment File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 44, in interpolate_environment_variables for name, config_dict in config.items() File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 44, in <genexpr> for name, config_dict in config.items() File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 39, in process_item for key, val in (config_dict or {}).items() File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 39, in <genexpr> for key, val in (config_dict or {}).items() File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 54, in interpolate_value return recursive_interpolate(value, interpolator, get_config_path(config_key, section, name)) File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 74, in recursive_interpolate for (key, val) in obj.items() File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 74, in <genexpr> for (key, val) in obj.items() File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 70, in recursive_interpolate return converter.convert(config_path, interpolator.interpolate(obj)) File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 184, in convert return self.map[rexp](value) File "/usr/lib/python2.7/site-packages/compose/config/interpolation.py", line 141, in to_int return int(s, base=0) ValueError: invalid literal for int() with base 0: '512m' [root@e3ee3b85b962 zabbix-docker]#
Expected:
Creating zabbixdocker_zabbix-server_1 ... done Creating zabbixdocker_zabbix-snmptraps_1 ... Creating zabbixdocker_mysql-server_1 ... done Creating zabbixdocker_db_data_pgsql_1 ... Creating zabbixdocker_postgres-server_1 ... Creating zabbixdocker_mysql-server_1 ... Creating zabbixdocker_zabbix-web-nginx-pgsql_1 ... done Creating zabbixdocker_zabbix-proxy-mysql_1 ... done Creating zabbixdocker_zabbix-proxy-sqlite3_1 ... Creating zabbixdocker_zabbix-web-apache-pgsql_1 ... done Creating zabbixdocker_zabbix-proxy-sqlite3_1 ... done Creating zabbixdocker_zabbix-agent_1 ... done [root@e3ee3b85b962 zabbix-docker]#
See also
Compose file versions and upgrading - Upgrading Version 2.x to 3.x, docs.docker.com