Docker exec makes user name login container report error

  docker, question


macOS 10.12.6 (16G29)
 Docker version 17.06.0-ce, build 02c1d87

Bash command:docker-compose exec —user=laradock workspace bash

Error reporting:

1 ↵
 Traceback (most recent call last):
 File "docker-compose", line 3, in <module>
 File "compose/cli/", line 68, in main
 File "compose/cli/", line 118, in perform_command
 File "compose/cli/", line 401, in exec_command
 File "compose/", line 142, in get_service
 File "compose/", line 632, in __init__
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
 Failed to execute script docker-compose

Use:docker-compose exec workspace bashCan enter. but is root

I want non-root permission to log in to the container.

docker run -uThere is one-uAccess can help you