SvenDowideit / dockerfiles

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

samba setup.sh fails with docker 1.11.0, "-D info" no longer outputs "Init Path" #47

Open jamshid opened 8 years ago

jamshid commented 8 years ago

The https://github.com/SvenDowideit/dockerfiles/blob/master/samba/setup.sh entrypoint script expects to find "Init Path" in the docker info output, but that no longer appear to be output. I'm working around it by modifying the script in my own Dockerfile based on svendowideit/samba.

FROM svendowideit/samba
# Install docker client
ENV DOCKER_VERSION 1.11.0
RUN curl -sSLf https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz | tar -xzvf - 'docker' && chmod +x docker/* && mv docker/* /bin
RUN rmdir /docker && mv /bin/docker /
RUN sed --in-place 's/Init Path/Root Dir/g' /setup.sh

Here's the output of docker -D info on my Docker for Mac beta7.

Containers: 71
 Running: 25
 Paused: 0
 Stopped: 46
Images: 1008
Server Version: 1.11.0
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 860
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: host bridge null
Kernel Version: 4.4.6
Operating System: Alpine Linux v3.3
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.859 GiB
Name: docker
ID: MITY:6ZN7:O6CE:D6UK:V2EE:HNNC:CDPK:HZ3U:QH6W:24FQ:6V5U:N7TS
Docker Root Dir: /var/lib/docker
Debug mode (client): true
Debug mode (server): true
 File Descriptors: 129
 Goroutines: 236
 System Time: 2016-04-17T06:58:21.554078106Z
 EventsListeners: 2
Registry: https://index.docker.io/v1/