Hello,
I am also getting this issue, on the latest version (Version 1.13.0 (15072)) of Docker for Mac.
mysql_1 | Warning: Using a password on the command line interface can be insecure.
Exception in thread Thread-5:
Traceback (most recent call last):
File "threading.py", line 801, in __bootstrap_inner
File "threading.py", line 754, in run
File "compose/cli/log_printer.py", line 197, in watch_events
File "compose/project.py", line 350, in events
File "site-packages/docker/api/client.py", line 295, in _stream_helper
File "json/__init__.py", line 339, in loads
File "json/decoder.py", line 367, in decode
ValueError: Extra data: line 2 column 1 - line 2 column 648 (char 684 - 1331)
Iāve only noticed it happen when I do docker-compose run without pushing it to the background. Iām using a mysql image, my compose file is as follows;
version: "2"
services:
mysql:
image: mysql:5.6
env_file: .env
ports:
- "3306:3306"
volumes:
- ./db:/docker-entrypoint-initdb.d
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
db:
As with the others, it seems pretty tempramental, it doesnāt always do it, I am sometimes able to log in to the database, and have a look before it gets killed. ādocker-compose psā returns an empty list after this failure.
I realise this is not necessarily the most up to date thread.