Expected behavior
Container should be running
Actual behavior
Container won’t run command - file not found
Information
[EDIT] - Originally thought that this was due to memory issues on the container but turns out that Exited (127) is a file not found error.
Can’t quite figure out what’s wrong - the docker file and the container works perfectly on a MAC and I’m thinking it’s to do with a chmod / run command or the Windows version of Docker. Here’s the details of my system - has anybody seen anything like this before - I’ve read a few posts about chmod not having the correct permissions and making sure that the file has linux line endings not windows line endings but I’m not sure how to do that or make sure that the file when copied over does have the correct endings (if that even is the problem)
I’m using a ruby file for the docker entrypoint as I need to configure some files on the fly and with version controlling - makes it slightly easier to have just the one file.
Has anybody had anything like this before?
PS C:\WINDOWS\system32> [System.Environment]::OSVersion.Version
Major Minor Build Revision
----- ----- ----- --------
10 0 10586 0
PS C:\WINDOWS\system32>
$ docker version
Client:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 21:20:08 2016
OS/Arch: windows/amd64
Server:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 21:20:08 2016
OS/Arch: linux/amd64
Docker file :
FROM ubuntu:15.10
ARG CASSANDRA_VERSION=12x
RUN echo "deb http://www.apache.org/dist/cassandra/debian ${CASSANDRA_VERSION} main" \
> /etc/apt/sources.list.d/cassandra.list && \
echo "deb-src http://www.apache.org/dist/cassandra/debian ${CASSANDRA_VERSION} main" \
>> /etc/apt/sources.list.d/cassandra.list
RUN apt-get update && \
apt-get -y --allow-unauthenticated install \
vim \
ruby \
cassandra \
openjdk-8-jre-headless && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY files/kubernetes-cassandra-0.1.3.jar /tmp/kubernetes-cassandra.jar
COPY files/logback.xml /etc/cassandra/logback.xml
RUN chown -R cassandra: \
/etc/cassandra \
/etc/cassandra/logback.xml && \
chmod -R o+w \
/etc/cassandra
COPY docker-entrypoint.rb /docker-entrypoint.rb
RUN chmod o+x /docker-entrypoint.rb
EXPOSE 7000 7001 7199 9042 9160
USER cassandra
CMD /docker-entrypoint.rb