Skip to content
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

Volume mounting issue #3

Open
oozone opened this issue Mar 15, 2016 · 0 comments
Open

Volume mounting issue #3

oozone opened this issue Mar 15, 2016 · 0 comments
Assignees

Comments

@oozone
Copy link

oozone commented Mar 15, 2016

Hi,

ran into an issue, when I try to mount a volume for the RED5 server, it fails. I need it to include our custom webapps folder for red5. If you could help out, that'd be awesome.

Tried running:
docker run -it -p 5080:5080 -p 1935:1935 -p 8081:8081 -v /home/var/www/red5/data:/opt/red5 paraastro/red5ms
Error I get is:
exec: "./red5.sh": stat ./red5.sh: no such file or directory docker: Error response from daemon: Container command not found or does not exist..

Dockerfile I build is this:
`
FROM java:8
MAINTAINER Paul Gregoire [email protected]

ENV DEBIAN_FRONTEND noninteractive
ENV RED5_VERSION 1.0.6-RELEASE

Define RED5_HOME variable

ENV RED5_HOME /opt/red5

RUN mkdir -p $RED5_HOME

RUN cp red5-server-${RED5_VERSION}/* /home/var/www/red5/data

RUN apt-get update &&
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&
wget -q https://github.com/Red5/red5-server/releases/download/v${RED5_VERSION}/red5-server-${RED5_VERSION}-server.tar.gz -O red5.tar.gz &&
tar -xzf red5.tar.gz &&
mv red5-server-${RED5_VERSION}/* ${RED5_HOME} &&
rm -rf red5*

https://docs.docker.com/userguide/dockervolumes/

VOLUME ["/opt/red5"]

WORKDIR /opt/red5
EXPOSE 843 1935 5080 5443 8081 8443

ENTRYPOINT ["./red5.sh"]`

@mondain mondain self-assigned this Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants