Skip to content

Docker self hosted version shows control characters instead of colors #274

Closed
@mcallaway

Description

@mcallaway

This is on Mac 10.15.7 with Docker for Mac:

> docker --version
Docker version 20.10.0, build 7287ab3

When using the docker-compose version of cheat.sh:

> git log | head -n1
commit 4d86f0fb959b92e4dfeb141ddd0f6424322d131c

I do:

> docker-compose up --build

Things build without error and start up:

Successfully built 56154e635c2a
Successfully tagged cheat.sh:latest
Starting cheatsh_redis_1 ... done
Starting chtsh           ... done
Attaching to cheatsh_redis_1, chtsh
redis_1  | 1:C 10 Jan 17:59:13.308 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1  | 1:C 10 Jan 17:59:13.308 # Redis version=4.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1  | 1:C 10 Jan 17:59:13.308 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1  | 1:M 10 Jan 17:59:13.309 * Running mode=standalone, port=6379.
redis_1  | 1:M 10 Jan 17:59:13.309 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1  | 1:M 10 Jan 17:59:13.309 # Server initialized
redis_1  | 1:M 10 Jan 17:59:13.309 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1  | 1:M 10 Jan 17:59:13.310 * DB loaded from disk: 0.000 seconds
redis_1  | 1:M 10 Jan 17:59:13.310 * Ready to accept connections
chtsh    | Starting gevent server on 0.0.0.0:8002
chtsh    | 172.19.0.1 - - [2021-01-10 17:59:19] "GET / HTTP/1.1" 200 448540 0.246588
chtsh    | 172.19.0.1 - - [2021-01-10 17:59:19] "GET /files/opensearch.xml HTTP/1.1" 200 986 0.001436

But when I point my browser to localhost:8002 I see:

Screen Shot 2021-01-10 at 11 59 30 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions