-
Notifications
You must be signed in to change notification settings - Fork 161
Mac + docker-machine failed #23
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
Comments
@kirinse What's your docker and docker-compose version? |
@tennix thanks for your replying, Server:
|
Your Docker and Docker Compose version is OK. Is it the first time to run tidb-docker-compose, I mean is the data directory clean from scratch. Try with a clean data directory:
|
Hi @tennix, thanks for your replying, i tried your suggestion, but no luck. |
I've no clue about your problem. I suggest you debug it yourself
with entrypoint
See if you can find something from above steps |
I found what's the problem. but i don't have any clue how to fix it. in pd container, i can't modify uid/gid |
Comment out |
@kirinse comment that will result non-persistent data, if container is removed due to some reasons, all data will be wiped out. |
I'll try your version to see if the latest docker introduces permission problem |
@tennix, FYI, i am using docker-machine on Mac |
Hi @tennix, any updates? |
☁ tidb-docker-compose [master] docker-compose ps ☁ tidb-docker-compose [master] docker-compose logs pd0 |
I don't have MacOS atm, so don't know if it's a bug introduced by latest docker. |
@tennix please help me. can you tell me how to try? |
我在这里找到看起来与之相似的错误,不知道能否对你们修复此bug有帮助? |
@hookover What's your Docker |
Can you write to a directory that is mounted in a container?
|
@kirinse I only have a MacOS running 18.03.1-ce Docker, and I can't find older Docker App download link. |
@kirinse are you using docker-machine? (The one that runs in a virtual machine in the virtual box?) I've tried this repo with the newest docker on Mac, it works out of the box. So in short - currently on Mac it is not recommend to use docker-machine anymore. Just use newer version of docker for Mac (which run on hyperkit internally but you get similar experience as if you are using docker on Linux) |
@tennix ==> Casks docker run -it --rm -v $HOME/Documents:/documents --entrypoint=sh pingcap/pd:latest i can write any files |
@tennix @liufuyang 我从官网重新下载了Docker-ce for mac 后,成功正确运行了测试集群,谢谢你们 |
Hi, @kirinse could you download Docker for Mac App from Docker official website https://store.docker.com/editions/community/docker-ce-desktop-mac and try to run |
Please answer these questions before submitting your issue. Thanks!
What did you do?
$ git clone https://github.com/pingcap/tidb-docker-compose.git
$ cd tidb-docker-compose && docker-compose up -d
What did you expect to see?
What did you see instead?
docker logs -f tidbdockercompose_pd0_1
2018/05/27 23:50:01.700 log.go:78: [fatal] mvcc/backend: [cannot open database at /data/pd0/member/snap/db (invalid argument)]
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?2.0
The text was updated successfully, but these errors were encountered: