SvenDowideit / dockerfiles

dockerfiles that I use
http://fosiki.com
MIT License
212 stars 60 forks source link

can't start samba container #29

Open nheine opened 9 years ago

nheine commented 9 years ago
docker run -v $(which docker):/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba data

returns

/docker: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory

Any idea why? docker runs on a gentoo host 64bit

nheine commented 9 years ago

I have changed the path to the bind mount volume from -v $(which docker):/docker to -v $(which docker):/docker2 and the error message is gone. However it still does not start

# docker run -v $(which docker):/docker2 -v /var/run/docker.sock:/docker.sock svendowideit/samba data 

please run with: 
   docker run --rm -v $(which docker):/docker -v /var/run/docker.sock:/docker.sock -e DOCKER_HOST svendowideit/samba data 

 OR - depending on your Docker Host's socket connection and location of its docker binary 

   docker run --rm -v /usr/local/bin/docker:/docker -e DOCKER_HOST svendowideit/samba data

Any ideas?

nheine commented 8 years ago

I pulled again and now I am getting

/docker: error while loading shared libraries: libdevmapper.so.1.02: cannot open shared object file: No such file or directory
SvenDowideit commented 8 years ago

ah joy, the docker executable used to be a static binary, and now its dynamic.

niccokunzmann commented 8 years ago

I suggest a new way to run this, circumventing sharing parameters:

docker run svendowideit/samba data | sh