processone / docker-ejabberd

Set of ejabberd Docker images
95 stars 77 forks source link

ecs/Dockerfile build error images #9

Closed kevin71020 closed 6 years ago

kevin71020 commented 6 years ago

Build Dockerfile in local drive. I don't change anything. There have error message when run the image.

$ git clone https://github.com/processone/docker-ejabberd.git
$ cd docker-ejabberd/ecs
$ docker build  -t kt71020/ecs .
Successfully built da1e6024a485
Successfully tagged kt71020/ecs:latest

error message

docker run --name ejabberd -d -p 5222:5222 kt71020/ecs
c823504409e5e21e62798e234b1071557f61a400a71e61415e39a9df2d9b96b8
docker: Error response from daemon: OCI runtime create failed: container_linux.go:296: starting container process caused "exec: \"/home/ejabberd/bin/ejabberdctl\": permission denied": unknown.

Docker version

Client:
 Version:   18.01.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    03596f5
 Built: Wed Jan 10 20:11:05 2018
 OS/Arch:   linux/amd64
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:  18.01.0-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   03596f5
  Built:    Wed Jan 10 20:09:37 2018
  OS/Arch:  linux/amd64
  Experimental: false

planform

digitalocean
1 GB Memory / 25 GB Disk / SGP1 - Ubuntu 16.04.3 x64
kevin71020 commented 6 years ago

The warring message when build image.

src/ejabberd_sql.erl:509: Warning: erlang:get_stacktrace/0 used following an old-style 'catch' may stop working in a future release. (Use it inside 'try'.)
Compiling 18 files (.ex)
warning: use GenEvent is deprecated, use one of the alternatives described in the documentation for the GenEvent module
  lib/ct_formatter.ex:4

warning: the GenEvent module is deprecated, see its documentation for alternatives
  lib/ct_formatter.ex:4

warning: variable "get_modules_parsed_in_order" does not exist and is being expanded to "get_modules_parsed_in_order()", please use parentheses to remove the ambiguity or change the variable name
  lib/ejabberd/config/config.ex:26

warning: Dict.put/3 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
  lib/ejabberd/config/config.ex:53

warning: Dict.put/3 is deprecated, use the Map module for working with maps or the Keyword module for working with keyword lists
  lib/ejabberd/config/config.ex:52

warning: variable "get_general_opts" does not exist and is being expanded to "get_general_opts()", please use parentheses to remove the ambiguity or change the variable name
  lib/ejabberd/config/config.ex:51

warning: unused alias Attr
  lib/ejabberd/config/ejabberd_module.ex:15

warning: variable "val" is unused
  lib/ejabberd/config/logger/ejabberd_logger.ex:24

warning: unused alias Attr
  lib/ejabberd/config/validator/validation.ex:10

warning: unused alias ValidatorUtility
  lib/ejabberd/config/validator/validation.ex:12

warning: variable "attr" is unused
  lib/ejabberd/config/validator/validator_attrs.ex:21

warning: undefined behaviour function depends/2 (for behaviour :gen_mod)
  lib/mod_presence_demo.ex:1

warning: undefined behaviour function mod_options/1 (for behaviour :gen_mod)
  lib/mod_presence_demo.ex:1

warning: variable "mods" is unused
  lib/mix/tasks/deps.tree.ex:43

Generated ejabberd app

An example config file has been placed in rel/config.exs, review it,
make edits as needed/desired, and then run `mix release` to build the release
==> Assembling release..
==> Building release ejabberd:18.1.0 using environment prod
==> Including ERTS 9.1.5 from /usr/lib/erlang/erts-9.1.5
==> Packaging release..
==> Release successfully built!
    You can run it in one of the following ways:
      Interactive: _build/prod/rel/ejabberd/bin/ejabberd console
      Foreground: _build/prod/rel/ejabberd/bin/ejabberd foreground
      Daemon: _build/prod/rel/ejabberd/bin/ejabberd start
Removing intermediate container edd2f7c7fe67
 ---> d356359486d0
cromain commented 6 years ago

I could not reproduce for now. build output looks good.

cromain commented 6 years ago

do you get this error always, or could you have successful builds ?

cromain commented 6 years ago

i could not reproduce. please reopen if you still reproduce and get more details