Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CANT USE DOCKER #58

Open
gudge25 opened this issue Jan 29, 2018 · 5 comments
Open

CANT USE DOCKER #58

gudge25 opened this issue Jan 29, 2018 · 5 comments

Comments

@gudge25
Copy link

gudge25 commented Jan 29, 2018

[root@sip ~]# docker run -it -v /tmp/homer_mysql/:/var/lib/mysql --name homer5 -p 80:80 -p 9060:9060/udp sipcapture/homer-docker
Unable to find image 'sipcapture/homer-docker:latest' locally
latest: Pulling from sipcapture/homer-docker
10a267c67f42: Pull complete
afff4b2ee6a3: Pull complete
8c49780af0c4: Pull complete
8b499f11f401: Pull complete
7ac4dffd4d1c: Pull complete
b2115fadcb66: Pull complete
05b5b3fc734c: Pull complete
dfa948fc1037: Pull complete
76d04c073e1f: Pull complete
cd0878c4ed29: Pull complete
114c43fcc9af: Pull complete
ecf9b6f8dadd: Pull complete
04b7ee89fed6: Pull complete
6fbcd0ee0e2c: Pull complete
280ff9f04f8d: Pull complete
52e85839fb3d: Pull complete
545b24d0ef06: Pull complete
618d3786d586: Pull complete
069f5964331a: Pull complete
1c55f59ac41d: Pull complete
7c0e1ed62d9c: Pull complete
27966441fb0d: Pull complete
8c31dcff169b: Pull complete
91982aa5c783: Pull complete
7fdb709d0209: Pull complete
725472a85dfb: Pull complete
4febf438b3f0: Pull complete
a60da8e85171: Pull complete
cb0329f02798: Pull complete
ae4581f86bbe: Pull complete
7a931d226d0d: Pull complete
43623aa5626b: Pull complete
d3be65b11023: Pull complete
cc1247bdb4c4: Pull complete
f1f3eae0b7dc: Pull complete
Digest: sha256:8d5ad8a2fcd036eaca488113ad8363afa94b5797a1890a11a4c57021b023b948
Status: Downloaded newer image for sipcapture/homer-docker:latest
Beginning initial data load....
2018-01-29T16:27:30.182554Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-01-29T16:27:30.183599Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2018-01-29T16:27:30.183624Z 0 [ERROR] Aborting

Starting mysqld
No directory, logging in with HOME=/
.......................................................................................................................
...............................................................................................

@lmangani
Copy link
Member

Hi @gudge25 it seems you're mapping a folder w/ existing contents and the all-in-one package does not happily play with that unless the "initialized" flag is found on the filesystem, ie: $DATADIR/.homer_initialized

Was this a brand new setup with existing MySQL data, migration to container, or something else?
Thanks & Hope this helps!

@gudge25
Copy link
Author

gudge25 commented Jan 29, 2018

hi @lmangani this is a new install (reinstall but i delete all volumes and images before reinstall ) -- so think that it is a new one install

@lmangani
Copy link
Member

@gudge25 could you confirm if there is anything in /tmp/homer_mysql folder you are mapping?
Try move to a new location for a test - it should spin right up.

@gudge25
Copy link
Author

gudge25 commented Apr 13, 2018

ok after clearing /tmp/homer_mysql it started
but i loose all the data
why i should delete my data to recreate homer ?

@lmangani
Copy link
Member

You should not, definitely - this seems to be a local issue and generic to docker, not homer perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants