Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在执行最后一步运行docker-compose时编码错误 #1

Closed
A3475 opened this issue Aug 12, 2017 · 4 comments
Closed

在执行最后一步运行docker-compose时编码错误 #1

A3475 opened this issue Aug 12, 2017 · 4 comments

Comments

@A3475
Copy link

A3475 commented Aug 12, 2017

以下是错误报告
Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 68, in main
command()
File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 115, in perform_command
project = project_from_options('.', options)
File "/usr/local/lib/python2.7/dist-packages/compose/cli/command.py", line 37, in project_from_options
override_dir=options.get('--project-directory'),
File "/usr/local/lib/python2.7/dist-packages/compose/cli/command.py", line 91, in get_project
config_data = config.load(config_details)
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 383, in load
service_dicts = load_services(config_details, main_file)
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 481, in load_services
return build_services(service_config)
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 460, in build_services
for name, service_dict in service_config.items()
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 445, in build_service
service_dict = process_service(resolver.run())
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 712, in process_service
service_dict['volumes'] = resolve_volume_paths(working_dir, service_dict)
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 1080, in resolve_volume_paths
for volume in service_dict['volumes']
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 1094, in resolve_volume_path
container_path, host_path = split_path_mapping(volume)
File "/usr/local/lib/python2.7/dist-packages/compose/config/config.py", line 1180, in split_path_mapping
if ':' in volume_config:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 11: ordinal not in range(128)

@virusdefender
Copy link
Contributor

你修改过这个文件么?

@A3475
Copy link
Author

A3475 commented Aug 13, 2017

没有,是在Ubuntu中文环境下打开的,和Ubuntu语言有关系?我去试试

@A3475
Copy link
Author

A3475 commented Aug 13, 2017

已测试,无关

@A3475
Copy link
Author

A3475 commented Aug 13, 2017

已查明,python2的锅,用python3运行无报错

@A3475 A3475 closed this as completed Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants