turnbullpress / dockerbook-code

The code and configuration examples from The Docker Book (http://www.dockerbook.com)
929 stars 580 forks source link

Error in `docker run redis` #45

Closed aiueogawa closed 7 years ago

aiueogawa commented 7 years ago

Error in Section 5.2.3.2 [Building a Redis database image].

This is the Dockerfile for Redis image.

FROM ubuntu:16.04
MAINTAINER James Turnbull "james@example.com"
ENV REFRESHED_AT 2016-06-01
RUN apt-get -yqq update; apt-get -yqq install redis-server redis-tools
EXPOSE 6379
ENTRYPOINT [ "/usr/bin/redis-server", "--protected-mode no" ]
CMD []

and This is the command for building and running Redis image.

$ docker build -t jamtur01/redis .
$ docker run -d -p 6379 --name redis jamtur01/redis

This command occurs the following error.

*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 2
>>> 'protected-mode " no"'
Bad directive or wrong number of arguments

I'm studying Docker with The Docker Book and new to Redis. How can I debug it.

aiueogawa commented 7 years ago

I'm sorry but this issue is solved in #41. According #41, This problem will be fixed in the next release.