{"action":"created","issue":{"url":"https://api.github.com/repos/seegno/docker-bitcoind/issues/18","repository_url":"https://api.github.com/repos/seegno/docker-bitcoind","labels_url":"https://api.github.com/repos/seegno/docker-bitcoind/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/seegno/docker-bitcoind/issues/18/comments","events_url":"https://api.github.com/repos/seegno/docker-bitcoind/issues/18/events","html_url":"https://github.com/seegno/docker-bitcoind/issues/18","id":163549206,"number":18,"title":"Error: Cannot obtain a lock on data directory","user":{"login":"ekkis","id":274980,"avatar_url":"https://avatars.githubusercontent.com/u/274980?v=3","gravatar_id":"","url":"https://api.github.com/users/ekkis","html_url":"https://github.com/ekkis","followers_url":"https://api.github.com/users/ekkis/followers","following_url":"https://api.github.com/users/ekkis/following{/other_user}","gists_url":"https://api.github.com/users/ekkis/gists{/gist_id}","starred_url":"https://api.github.com/users/ekkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekkis/subscriptions","organizations_url":"https://api.github.com/users/ekkis/orgs","repos_url":"https://api.github.com/users/ekkis/repos","events_url":"https://api.github.com/users/ekkis/events{/privacy}","received_events_url":"https://api.github.com/users/ekkis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-03T06:06:53Z","updated_at":"2016-07-05T18:58:33Z","closed_at":"2016-07-04T23:55:01Z","body":"I'm trying to run bitcoind from the docker image like this:\r\n\r\n`docker run --rm -it --name bitcoind -p 8332 -v ${PWD}/bitcoind:/home/bitcoin/.bitcoin seegno/bitcoind:latest -server -printtoconsole\r\n`\r\n\r\nbut I'm getting the error below:\r\n\r\n> /entrypoint.sh: assuming arguments for bitcoin\r\n> /entrypoint.sh: setting data directory to /home/bitcoin/.bitcoin\r\n> \r\n> 2016-07-03 05:57:12 \r\n> [many empty lines]\r\n> 2016-07-03 05:57:12 Bitcoin version v0.12.0 (2016-02-17 09:40:03 +0100)\r\n> 2016-07-03 05:57:12 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1\r\n> 2016-07-03 05:57:12 Error: Cannot obtain a lock on data directory /home/bitcoin/.bitcoin. Bitcoin Core is probably already running. No such file or directory.\r\n> Error: Cannot obtain a lock on data directory /home/bitcoin/.bitcoin. Bitcoin Core is probably already running. No such file or directory.\r\n> 2016-07-03 05:57:12 Shutdown: In progress...\r\n> 2016-07-03 05:57:12 StopNode()\r\n> 2016-07-03 05:57:12 Shutdown: done\r\n\r\nthe directory I've created to host the blockchain (and presumably the wallet) looks like this:\r\n\r\n> drwxr-xr-x    2 ekkis  staff     68 Jul  2 22:46 bitcoind/\r\n\r\nso what am I doing wrong? the container doesn't have sufficient space in it for a sync so I need to write it to my local disk.\r\n\r\nincidentally I'm running this on OSX using Boot2Docker, which I understand maps my `/home` folder automatically to the the docker-machine's file system.  I've also verified that there is no `bitcoind/.lock` file.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/seegno/docker-bitcoind/issues/comments/230570310","html_url":"https://github.com/seegno/docker-bitcoind/issues/18#issuecomment-230570310","issue_url":"https://api.github.com/repos/seegno/docker-bitcoind/issues/18","id":230570310,"user":{"login":"ekkis","id":274980,"avatar_url":"https://avatars.githubusercontent.com/u/274980?v=3","gravatar_id":"","url":"https://api.github.com/users/ekkis","html_url":"https://github.com/ekkis","followers_url":"https://api.github.com/users/ekkis/followers","following_url":"https://api.github.com/users/ekkis/following{/other_user}","gists_url":"https://api.github.com/users/ekkis/gists{/gist_id}","starred_url":"https://api.github.com/users/ekkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekkis/subscriptions","organizations_url":"https://api.github.com/users/ekkis/orgs","repos_url":"https://api.github.com/users/ekkis/repos","events_url":"https://api.github.com/users/ekkis/events{/privacy}","received_events_url":"https://api.github.com/users/ekkis/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T18:58:32Z","updated_at":"2016-07-05T18:58:32Z","body":"if I log into the container and run the entry point (since I replaced it in my invocation to the container), I get an error:\r\n\r\n`\r\nroot@811e3f6c65b1:/# ./entrypoint.sh \r\n`\r\n\r\n> ./entrypoint.sh: 4: [: =: unexpected operator\r\n> ./entrypoint.sh: 10: [: =: unexpected operator\r\n\r\nand curiously this fails too:\r\n\r\n```\r\nroot@811e3f6c65b1:/# /bin/sh\r\n# if [ $(echo \"$1\" |cut -c1) = \"-\"]; then\r\n> echo \"ok\"\r\n> fi\r\n```\r\n> /bin/sh: 1: [: missing ]\r\n\r\nI don't get it"}}
{"actor":{"display_login":"ekkis"}}