pinba_engine icon indicating copy to clipboard operation
pinba_engine copied to clipboard

Problems with run docker image

Open yapro opened this issue 9 years ago • 4 comments

docker run -d --net=host --name=pinba tony2001/pinba

check:

docker ps
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                                                                                                NAMES
a99ad76e0309        tony2001/pinba                "/local/mysql/bin/env"   8 seconds ago       Up 8 seconds                                                                                                             pinba

and check again:

docker ps -a
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS                         PORTS                                                                                                NAMES
65d5e1c0896b        tony2001/pinba                "/local/mysql/bin/env"   12 minutes ago      Exited (1) 4 minutes ago                                                                                                            jolly_goldberg

Checking whats wrong:

docker logs pinba
2016-06-10 17:27:46 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-06-10 17:27:46 0 [Note] /local/mysql/bin/mysqld (mysqld 5.6.30) starting as process 1 ...

Do you have any ideas?

yapro avatar Jun 10 '16 17:06 yapro

I had two issues with the Docker image, maybe you have some of them:

  1. It need's at least 2GB of RAM. I was trying on a micro instance in AWS (1GB), so OOM killer would kill my instance.

  2. I had MySQL running on my docker host, so the 3306 port was already bound by another process.

pmontepagano avatar Jun 28 '16 17:06 pmontepagano

confirm this

Free mem: 10GB

Linux ln 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Docker version 17.06.2-ce, build cec0b72

i not have mysql working on localhost.

fe3dback avatar May 03 '18 16:05 fe3dback

@yapro Confirm this message https://github.com/tony2001/pinba_engine/issues/53#issuecomment-229114435 On my test machine, it was also necessary to add a swap file of at least 2 GB, because after launching the pinba, the free space in the swap decreased by 1.5GB. And yes, when other process bound ports 3306 or 30002 pinba won't start.

g3rhard avatar Jan 22 '19 10:01 g3rhard

About the issue with other processes occupying ports 3306 or 30002: it is relatively easy to add a -p switch to the command line used to start the Pinba container, so that the ports it listens to get mapped to different ports on the host. I agree this could be documented somewhere a bit better.

gggeek avatar Dec 11 '22 09:12 gggeek