macOS 10.12.6 (16G29) Docker version 17.06.0-ce, build 02c1d87
docker-compose exec —user=laradock workspace bash
1 ↵ Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 68, in main File "compose/cli/main.py", line 118, in perform_command File "compose/cli/main.py", line 401, in exec_command File "compose/project.py", line 142, in get_service File "compose/project.py", 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
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