Previously, I could run this docker-compose.yaml normally. After running docker-compose down, when I tried to start it again using dokcer-compose up -d , the error began.
cat docker-compose.yaml
dev:~/calculator-docker$ docker-compose up -d
Creating network "calculator-docker_calculatoremisi-network" with driver "bridge"
Creating calculator-docker_calculatoremisi-db_1 ...
Creating calculator-docker_web_1 ... error
Creating calculator-docker_calculatoremisi-db_1 ... error
ERROR: for calculator-docker_web_1 Cannot start service web: bufio.Scanner: token too long
ERROR: for calculator-docker_calculatoremisi-db_1 Cannot start service calculatoremisi-db: bufio.Scanner: token too long
ERROR: for web Cannot start service web: bufio.Scanner: token too long
ERROR: for calculatoremisi-db Cannot start service calculatoremisi-db: bufio.Scanner: token too long
ERROR: Encountered errors while bringing up the project.
my journalctl -u docker.service -f said
dockerd[1383]: time="2026-02-22T18:39:53.242878615Z" level=error msg="Handler for POST /v1.45/containers/8705b4a0e2f678394cbae8e3ec125b1ee1e9e22121245459451996be8d9aacf0/start returned error: bufio.Scanner: token too long" spanID=a760fe62cac1936e traceID=37aeec1c13fed0d2c0a38ec2e7be2e04
my sudo tail -f /var/log/syslog said
dockerd[1383]: time="2026-02-22T19:07:55.994520045Z" level=error msg="Handler for POST /v1.45/containers/8705b4a0e2f678394cbae8e3ec125b1ee1e9e22121245459451996be8d9aacf0/start returned error: bufio.Scanner: token too long" spanID=06deda846cf04bee traceID=85fd502a088d5c8c2d8ccb4332331f08
run simple hello-world is error
docker run hello-world
docker: Error response from daemon: bufio.Scanner: token too long.
my os is ubuntu with docker version 28 still issue, i try docker version 27 and still issue, i try docker 26 and still issue
The output of docker info and docker version could be even more important if you really get the same bufio error for a simple docker run hello-world command. Remove any private details from the output befoe sharing if you find any.
But please, when you share any output, donāt forget to use code blocks, so I donāt need to edit your post to add it and make your message readable. You can use the common MArkDown syntax ot just the </> button to open a new code block.
Thank you, sir. Your references helped me a lot. I ran ls -lh /etc/resolv.conf to check the file size (it was 94 KB; according to Google, the limit is 64 KB). As a temporary solution, I truncated /etc/resolv.conf
I am surprised your resolv.conf is this big. Even 64kb sounds ridiculous larg.e I would expect something along the lines of <2kb⦠You might want to investigate what caused it.