rroemhild/docker-ejabberd — pull request #7 by benlangfeld (2014-11-26 16:30:42+00:00)
Title: Permissions are screwed in container

```
➭ fig up
Creating dockerejabberd_ejabberd_1...
Building ejabberd...
Pulling repository ubuntu
86ce37374f40: Download complete
511136ea3c5a: Download complete
5bc37dc2dfba: Download complete
61cb619d86bc: Download complete
3f45ca85fedc: Download complete
78e82ee876a2: Download complete
dc07507cef42: Download complete
---> 86ce37374f40
Step 1 : MAINTAINER Rafael Römhild
---> Running in 2a6036e63171
---> 4947386c1510
Removing intermediate container 2a6036e63171
Step 2 : ENV HOME /opt/ejabberd
---> Running in 89f16716874e
---> 5abc88376726
Removing intermediate container 89f16716874e
Step 3 : ENV EJABBERD_VERSION 14.07
---> Running in c5a13f4409c8
---> bd4fc71a625d
Removing intermediate container c5a13f4409c8
Step 4 : ENV DEBIAN_FRONTEND noninteractive
---> Running in 654c19814059
---> 8f968ec7c3a6
Removing intermediate container 654c19814059
Step 5 : RUN apt-get update && apt-get -y install wget libexpat1 erlang-nox libyaml-0-2 python-jinja2 && rm -rf /var/lib/apt/lists/*
---> Running in cff8d5e4edcc
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty-proposed InRelease
Get:1 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
Get:4 http://archive.ubuntu.com trusty-proposed Release.gpg [933 B]
Get:5 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:6 http://archive.ubuntu.com trusty-updates Release [62.0 kB]
Get:7 http://archive.ubuntu.com trusty-security Release [62.0 kB]
Get:8 http://archive.ubuntu.com trusty-proposed Release [209 kB]
Get:9 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:10 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:11 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:12 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:13 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:14 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Get:15 http://archive.ubuntu.com trusty-updates/main Sources [182 kB]
Get:16 http://archive.ubuntu.com trusty-updates/restricted Sources [1250 B]
Get:17 http://archive.ubuntu.com trusty-updates/universe Sources [114 kB]
Get:18 http://archive.ubuntu.com trusty-updates/main amd64 Packages [468 kB]
Get:19 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [6341 B]
Get:20 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [287 kB]
Get:21 http://archive.ubuntu.com trusty-security/main Sources [62.7 kB]
Get:22 http://archive.ubuntu.com trusty-security/restricted Sources [40 B]
Get:23 http://archive.ubuntu.com trusty-security/universe Sources [19.1 kB]
Get:24 http://archive.ubuntu.com trusty-security/main amd64 Packages [205 kB]
Get:25 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [40 B]
Get:26 http://archive.ubuntu.com trusty-security/universe amd64 Packages [93.5 kB]
Get:27 http://archive.ubuntu.com trusty-proposed/main amd64 Packages [193 kB]
Get:28 http://archive.ubuntu.com trusty-proposed/restricted amd64 Packages [40 B]
Fetched 20.6 MB in 38s (530 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libexpat1 is already the newest version.
The following extra packages will be installed:
ca-certificates erlang-asn1 erlang-base erlang-corba erlang-crypto
erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit
erlang-ic erlang-inets erlang-mnesia erlang-odbc erlang-os-mon
erlang-parsetools erlang-percept erlang-public-key erlang-runtime-tools
erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools
erlang-webtool erlang-xmerl libidn11 libltdl7 libodbc1 libpython-stdlib
libpython2.7-minimal libpython2.7-stdlib libsctp1 lksctp-tools openssl
python python-markupsafe python-minimal python-pkg-resources python2.7
python2.7-minimal
Suggested packages:
erlang erlang-manpages erlang-doc xsltproc fop erlang-ic-java
erlang-observer libmyodbc odbc-postgresql tdsodbc unixodbc-bin python-doc
python-tk python-jinja2-doc python-distribute python-distribute-doc
python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
ca-certificates erlang-asn1 erlang-base erlang-corba erlang-crypto
erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit
erlang-ic erlang-inets erlang-mnesia erlang-nox erlang-odbc erlang-os-mon
erlang-parsetools erlang-percept erlang-public-key erlang-runtime-tools
erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools
erlang-webtool erlang-xmerl libidn11 libltdl7 libodbc1 libpython-stdlib
libpython2.7-minimal libpython2.7-stdlib libsctp1 libyaml-0-2 lksctp-tools
openssl python python-jinja2 python-markupsafe python-minimal
python-pkg-resources python2.7 python2.7-minimal wget
0 upgraded, 45 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.7 MB of archives.
After this operation, 55.4 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libidn11 amd64 1.28-1ubuntu2 [93.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main libltdl7 amd64 2.4.2-1.7ubuntu1 [35.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main libodbc1 amd64 2.2.14p2-5ubuntu5 [175 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libsctp1 amd64 1.0.15+dfsg-1 [9226 B]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libyaml-0-2 amd64 0.1.4-3ubuntu3 [48.2 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main libpython2.7-minimal amd64 2.7.6-8 [307 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main python2.7-minimal amd64 2.7.6-8 [1190 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.7 [489 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ trusty/main ca-certificates all 20130906ubuntu2 [175 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/main wget amd64 1.15-1ubuntu1.14.04.1 [269 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-base amd64 1:16.b.3-dfsg-1ubuntu2.1 [6536 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-asn1 amd64 1:16.b.3-dfsg-1ubuntu2.1 [738 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-mnesia amd64 1:16.b.3-dfsg-1ubuntu2.1 [658 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-runtime-tools amd64 1:16.b.3-dfsg-1ubuntu2.1 [157 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-crypto amd64 1:16.b.3-dfsg-1ubuntu2.1 [70.2 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-public-key amd64 1:16.b.3-dfsg-1ubuntu2.1 [498 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-ssl amd64 1:16.b.3-dfsg-1ubuntu2.1 [559 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-inets amd64 1:16.b.3-dfsg-1ubuntu2.1 [753 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-corba amd64 1:16.b.3-dfsg-1ubuntu2.1 [2235 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-syntax-tools amd64 1:16.b.3-dfsg-1ubuntu2.1 [289 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-diameter amd64 1:16.b.3-dfsg-1ubuntu2.1 [600 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-xmerl amd64 1:16.b.3-dfsg-1ubuntu2.1 [972 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-edoc amd64 1:16.b.3-dfsg-1ubuntu2.1 [298 kB]
Get:24 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-eldap amd64 1:16.b.3-dfsg-1ubuntu2.1 [91.8 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-erl-docgen amd64 1:16.b.3-dfsg-1ubuntu2.1 [134 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-eunit amd64 1:16.b.3-dfsg-1ubuntu2.1 [137 kB]
Get:27 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-ic amd64 1:16.b.3-dfsg-1ubuntu2.1 [818 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-odbc amd64 1:16.b.3-dfsg-1ubuntu2.1 [50.1 kB]
Get:29 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-snmp amd64 1:16.b.3-dfsg-1ubuntu2.1 [1497 kB]
Get:30 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-os-mon amd64 1:16.b.3-dfsg-1ubuntu2.1 [94.9 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-parsetools amd64 1:16.b.3-dfsg-1ubuntu2.1 [156 kB]
Get:32 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-percept amd64 1:16.b.3-dfsg-1ubuntu2.1 [136 kB]
Get:33 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-ssh amd64 1:16.b.3-dfsg-1ubuntu2.1 [361 kB]
Get:34 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-webtool amd64 1:16.b.3-dfsg-1ubuntu2.1 [39.5 kB]
Get:35 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-tools amd64 1:16.b.3-dfsg-1ubuntu2.1 [501 kB]
Get:36 http://archive.ubuntu.com/ubuntu/ trusty-updates/main erlang-nox all 1:16.b.3-dfsg-1ubuntu2.1 [17.7 kB]
Get:37 http://archive.ubuntu.com/ubuntu/ trusty/main libpython2.7-stdlib amd64 2.7.6-8 [1872 kB]
Get:38 http://archive.ubuntu.com/ubuntu/ trusty/main libpython-stdlib amd64 2.7.5-5ubuntu3 [7012 B]
Get:39 http://archive.ubuntu.com/ubuntu/ trusty/main lksctp-tools amd64 1.0.15+dfsg-1 [51.3 kB]
Get:40 http://archive.ubuntu.com/ubuntu/ trusty/main python2.7 amd64 2.7.6-8 [197 kB]
Get:41 http://archive.ubuntu.com/ubuntu/ trusty/main python-minimal amd64 2.7.5-5ubuntu3 [27.5 kB]
Get:42 http://archive.ubuntu.com/ubuntu/ trusty/main python amd64 2.7.5-5ubuntu3 [134 kB]
Get:43 http://archive.ubuntu.com/ubuntu/ trusty/main python-markupsafe amd64 0.18-1build2 [14.3 kB]
Get:44 http://archive.ubuntu.com/ubuntu/ trusty/main python-jinja2 all 2.7.2-2 [161 kB]
Get:45 http://archive.ubuntu.com/ubuntu/ trusty/main python-pkg-resources all 3.3-1ubuntu1 [61.9 kB]
Extracting templates from packages: 100%
Preconfiguring packages ...
Fetched 23.7 MB in 39s (604 kB/s)
Selecting previously unselected package libidn11:amd64.
(Reading database ... 11527 files and directories currently installed.)
Preparing to unpack .../libidn11_1.28-1ubuntu2_amd64.deb ...
Unpacking libidn11:amd64 (1.28-1ubuntu2) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../libltdl7_2.4.2-1.7ubuntu1_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.2-1.7ubuntu1) ...
Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../libodbc1_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking libodbc1:amd64 (2.2.14p2-5ubuntu5) ...
Selecting previously unselected package libsctp1:amd64.
Preparing to unpack .../libsctp1_1.0.15+dfsg-1_amd64.deb ...
Unpacking libsctp1:amd64 (1.0.15+dfsg-1) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../libyaml-0-2_0.1.4-3ubuntu3_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.1.4-3ubuntu3) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../libpython2.7-minimal_2.7.6-8_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.6-8) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.6-8_amd64.deb ...
Unpacking python2.7-minimal (2.7.6-8) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1f-1ubuntu2.7_amd64.deb ...
Unpacking openssl (1.0.1f-1ubuntu2.7) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20130906ubuntu2_all.deb ...
Unpacking ca-certificates (20130906ubuntu2) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.15-1ubuntu1.14.04.1_amd64.deb ...
Unpacking wget (1.15-1ubuntu1.14.04.1) ...
Selecting previously unselected package erlang-base.
Preparing to unpack .../erlang-base_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-base (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-asn1.
Preparing to unpack .../erlang-asn1_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-asn1 (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-mnesia.
Preparing to unpack .../erlang-mnesia_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-mnesia (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-runtime-tools.
Preparing to unpack .../erlang-runtime-tools_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-runtime-tools (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-crypto.
Preparing to unpack .../erlang-crypto_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-crypto (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-public-key.
Preparing to unpack .../erlang-public-key_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-public-key (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-ssl.
Preparing to unpack .../erlang-ssl_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-ssl (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-inets.
Preparing to unpack .../erlang-inets_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-inets (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-corba.
Preparing to unpack .../erlang-corba_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-corba (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-syntax-tools.
Preparing to unpack .../erlang-syntax-tools_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-syntax-tools (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-diameter.
Preparing to unpack .../erlang-diameter_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-diameter (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-xmerl.
Preparing to unpack .../erlang-xmerl_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-xmerl (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-edoc.
Preparing to unpack .../erlang-edoc_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-edoc (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-eldap.
Preparing to unpack .../erlang-eldap_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-eldap (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-erl-docgen.
Preparing to unpack .../erlang-erl-docgen_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-erl-docgen (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-eunit.
Preparing to unpack .../erlang-eunit_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-eunit (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-ic.
Preparing to unpack .../erlang-ic_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-ic (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-odbc.
Preparing to unpack .../erlang-odbc_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-odbc (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-snmp.
Preparing to unpack .../erlang-snmp_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-snmp (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-os-mon.
Preparing to unpack .../erlang-os-mon_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-os-mon (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-parsetools.
Preparing to unpack .../erlang-parsetools_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-parsetools (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-percept.
Preparing to unpack .../erlang-percept_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-percept (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-ssh.
Preparing to unpack .../erlang-ssh_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-ssh (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-webtool.
Preparing to unpack .../erlang-webtool_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-webtool (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-tools.
Preparing to unpack .../erlang-tools_1%3a16.b.3-dfsg-1ubuntu2.1_amd64.deb ...
Unpacking erlang-tools (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package erlang-nox.
Preparing to unpack .../erlang-nox_1%3a16.b.3-dfsg-1ubuntu2.1_all.deb ...
Unpacking erlang-nox (1:16.b.3-dfsg-1ubuntu2.1) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.6-8_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.6-8) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.5-5ubuntu3_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.5-5ubuntu3) ...
Selecting previously unselected package lksctp-tools.
Preparing to unpack .../lksctp-tools_1.0.15+dfsg-1_amd64.deb ...
Unpacking lksctp-tools (1.0.15+dfsg-1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.6-8_amd64.deb ...
Unpacking python2.7 (2.7.6-8) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python-minimal (2.7.5-5ubuntu3) ...
Selecting previously unselected package python.
Preparing to unpack .../python_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python (2.7.5-5ubuntu3) ...
Selecting previously unselected package python-markupsafe.
Preparing to unpack .../python-markupsafe_0.18-1build2_amd64.deb ...
Unpacking python-markupsafe (0.18-1build2) ...
Selecting previously unselected package python-jinja2.
Preparing to unpack .../python-jinja2_2.7.2-2_all.deb ...
Unpacking python-jinja2 (2.7.2-2) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../python-pkg-resources_3.3-1ubuntu1_all.deb ...
Unpacking python-pkg-resources (3.3-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Setting up libidn11:amd64 (1.28-1ubuntu2) ...
Setting up libltdl7:amd64 (2.4.2-1.7ubuntu1) ...
Setting up libodbc1:amd64 (2.2.14p2-5ubuntu5) ...
Setting up libsctp1:amd64 (1.0.15+dfsg-1) ...
Setting up libyaml-0-2:amd64 (0.1.4-3ubuntu3) ...
Setting up libpython2.7-minimal:amd64 (2.7.6-8) ...
Setting up python2.7-minimal (2.7.6-8) ...
Setting up openssl (1.0.1f-1ubuntu2.7) ...
Setting up ca-certificates (20130906ubuntu2) ...
Setting up wget (1.15-1ubuntu1.14.04.1) ...
Setting up erlang-base (1:16.b.3-dfsg-1ubuntu2.1) ...
Searching for services which depend on erlang and should be started...none found.
Setting up erlang-asn1 (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-mnesia (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-runtime-tools (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-crypto (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-public-key (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-ssl (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-inets (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-corba (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-syntax-tools (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-diameter (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-xmerl (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-edoc (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-eldap (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-erl-docgen (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-eunit (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-ic (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-odbc (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-snmp (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-os-mon (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-parsetools (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-percept (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-ssh (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-webtool (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-tools (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up erlang-nox (1:16.b.3-dfsg-1ubuntu2.1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.6-8) ...
Setting up libpython-stdlib:amd64 (2.7.5-5ubuntu3) ...
Setting up lksctp-tools (1.0.15+dfsg-1) ...
Setting up python2.7 (2.7.6-8) ...
Setting up python-minimal (2.7.5-5ubuntu3) ...
Setting up python (2.7.5-5ubuntu3) ...
Setting up python-markupsafe (0.18-1build2) ...
Setting up python-jinja2 (2.7.2-2) ...
Setting up python-pkg-resources (3.3-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
Processing triggers for ca-certificates (20130906ubuntu2) ...
Updating certificates in /etc/ssl/certs... 164 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
---> c57a5397d47e
Removing intermediate container cff8d5e4edcc
Step 6 : RUN wget -q -O /tmp/ejabberd-installer.run "http://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/$EJABBERD_VERSION/ejabberd-$EJABBERD_VERSION-linux-x86_64-installer.run" && chmod +x /tmp/ejabberd-installer.run && /tmp/ejabberd-installer.run --mode unattended --prefix /opt/ejabberd --adminpw ejabberd && rm -rf /tmp/*
---> Running in bfeac13cc695
---> 4ea79a7bffb1
Removing intermediate container bfeac13cc695
Step 7 : COPY ./ejabberd.yml.tpl /opt/ejabberd/conf/ejabberd.yml.tpl
---> 7798c979044f
Removing intermediate container 4f9fab0c7cf8
Step 8 : COPY ./ejabberdctl.cfg /opt/ejabberd/conf/ejabberdctl.cfg
---> 90612bf314d0
Removing intermediate container f696558ad475
Step 9 : RUN sed -i "s/ejabberd.cfg/ejabberd.yml/" /opt/ejabberd/bin/ejabberdctl && sed -i "s/root/ejabberd/g" /opt/ejabberd/bin/ejabberdctl
---> Running in 3400d7b78f68
---> 710cac59bc82
Removing intermediate container 3400d7b78f68
Step 10 : COPY ./run /opt/ejabberd/bin/run
---> c93eac3d439a
Removing intermediate container f5a8e4cc83cc
Step 11 : RUN groupadd -r ejabberd && useradd -r -g ejabberd -d /opt/ejabberd -s /usr/sbin/nologin ejabberd && mkdir /opt/ejabberd/ssl && chown -R ejabberd:ejabberd /opt/ejabberd
---> Running in a235155dc9ea
---> b86dfc8d64aa
Removing intermediate container a235155dc9ea
Step 12 : USER ejabberd
---> Running in eb874a9453ac
---> 57ae417cab1e
Removing intermediate container eb874a9453ac
Step 13 : VOLUME ["/opt/ejabberd/database", "/opt/ejabberd/ssl"]
---> Running in 5aae1b831efa
---> a66d62701288
Removing intermediate container 5aae1b831efa
Step 14 : EXPOSE 5222 5269 5280
---> Running in 53a69b1ae28e
---> e59026ad6c21
Removing intermediate container 53a69b1ae28e
Step 15 : CMD ["live"]
---> Running in 18b479304e6d
---> 29f611b65d64
Removing intermediate container 18b479304e6d
Step 16 : ENTRYPOINT ["/opt/ejabberd/bin/run"]
---> Running in 7c1edcdb4ad5
---> 6ed2532ab177
Removing intermediate container 7c1edcdb4ad5
Successfully built 6ed2532ab177
Attaching to dockerejabberd_ejabberd_1
ejabberd_1 | Generating ejabberd config file...
ejabberd_1 | /opt/ejabberd/bin/run: line 87: /opt/ejabberd/conf/ejabberd.yml: Permission denied
ejabberd_1 | cat: /opt/ejabberd/conf/ejabberd.yml.tpl: Permission denied
ejabberd_1 | Missing ssl cert for your host. Generating snakeoil ssl cert for localhost...
ejabberd_1 | Generating a 2048 bit RSA private key
ejabberd_1 | ......+++
ejabberd_1 | ............................................................+++
ejabberd_1 | writing new private key to '/tmp/selfsigned.key'
ejabberd_1 | -----
ejabberd_1 | Writing ssl cert and private key to '/opt/ejabberd/ssl/host.pem'...
ejabberd_1 | Missing ssl cert for your xmpp domain. Generating snakeoil ssl cert for localhost...
ejabberd_1 | Generating a 2048 bit RSA private key
ejabberd_1 | ........+++
ejabberd_1 | ...........................+++
ejabberd_1 | writing new private key to '/tmp/selfsigned.key'
ejabberd_1 | -----
ejabberd_1 | Writing ssl cert and private key to '/opt/ejabberd/ssl/xmpp_domain.pem'...
ejabberd_1 | sed: can't read /opt/ejabberd/conf/ejabberd.yml: Permission denied
ejabberd_1 | sed: can't read /opt/ejabberd/conf/ejabberd.yml: Permission denied
ejabberd_1 | sed: can't read /opt/ejabberd/conf/ejabberd.yml: Permission denied
ejabberd_1 | sed: can't read /opt/ejabberd/conf/ejabberd.yml: Permission denied
ejabberd_1 | --------------------------------------------------------------------
ejabberd_1 |
ejabberd_1 | IMPORTANT: ejabberd is going to start in LIVE (interactive) mode.
ejabberd_1 | All log messages will be shown in the command shell.
ejabberd_1 | You can interact with the ejabberd node if you know how to use it.
ejabberd_1 | Please be extremely cautious with your actions,
ejabberd_1 | and exit immediately if you are not completely sure.
ejabberd_1 |
ejabberd_1 | To exit this LIVE mode and stop ejabberd, press:
ejabberd_1 | q(). and press the Enter key
ejabberd_1 |
ejabberd_1 | --------------------------------------------------------------------
ejabberd_1 | To bypass permanently this warning, add to ejabberdctl.cfg the line:
ejabberd_1 | EJABBERD_BYPASS_WARNINGS=true
ejabberd_1 | Press any key to continue
ejabberd_1 |
ejabberd_1 | {error_logger,{{2014,11,26},{16,16,49}},std_error,"File operation error: eacces. Target: /opt/ejabberd/conf/inetrc. Function: get_file. Process: kernel_sup."}
ejabberd_1 | {error_logger,{{2014,11,26},{16,16,49}},"inet_config: file ~ts not found~n",["/opt/ejabberd/conf/inetrc"]}
ejabberd_1 |
ejabberd_1 | =ERROR REPORT==== 26-Nov-2014::16:16:49 ===
ejabberd_1 | File operation error: eacces. Target: /opt/ejabberd/conf/inetrc. Function: get_file. Process: kernel_sup.
ejabberd_1 |
ejabberd_1 | =ERROR REPORT==== 26-Nov-2014::16:16:49 ===
ejabberd_1 | inet_config: file /opt/ejabberd/conf/inetrc not found
ejabberd_1 | 16:16:49.343 [error] Failed to open log file /opt/ejabberd/logs/ejabberd.log with error permission denied
ejabberd_1 | 16:16:49.343 [error] Failed to open log file /opt/ejabberd/logs/error.log with error permission denied
ejabberd_1 | 16:16:49.623 [info] Application lager started on node ejabberd@localhost
ejabberd_1 | 16:16:49.643 [info] Application sasl started on node ejabberd@localhost
ejabberd_1 | 16:16:49.671 [info] Application crypto started on node ejabberd@localhost
ejabberd_1 | 16:16:49.683 [info] Application asn1 started on node ejabberd@localhost
ejabberd_1 | 16:16:49.683 [info] Application public_key started on node ejabberd@localhost
ejabberd_1 | 16:16:49.706 [info] Application ssl started on node ejabberd@localhost
ejabberd_1 | 16:16:49.712 [info] Application p1_yaml started on node ejabberd@localhost
ejabberd_1 | 16:16:49.723 [info] Application p1_tls started on node ejabberd@localhost
ejabberd_1 | 16:16:49.730 [info] Application p1_xml started on node ejabberd@localhost
ejabberd_1 | 16:16:49.734 [info] Application p1_stringprep started on node ejabberd@localhost
ejabberd_1 | 16:16:49.739 [info] Application p1_zlib started on node ejabberd@localhost
ejabberd_1 | 16:16:49.746 [info] Application p1_cache_tab started on node ejabberd@localhost
ejabberd_1 | 16:16:49.833 [error] Failed to open crash log file /opt/ejabberd/logs/crash.log with error: permission denied
ejabberd_1 | 16:16:50.050 [info] Application mnesia started on node ejabberd@localhost
ejabberd_1 | 16:16:51.440 [error] Cannot load /opt/ejabberd/conf/ejabberd.yml: permission denied
ejabberd_1 | Cannot load /opt/ejabberd/conf/ejabberd.yml: permission denied
dockerejabberd_ejabberd_1 exited with code 1
Gracefully stopping... (press Ctrl+C again to force)

➭ docker run -it --entrypoint=/bin/bash dockerejabberd_ejabberd -i
ejabberd@9a5c48f33349:/$ cd /opt/ejabberd/conf/
bash: cd: /opt/ejabberd/conf/: Permission denied
ejabberd@9a5c48f33349:/$ ls -flh /opt/ejabberd/
total 4.1M
drwxr-x--- 2 ejabberd ejabberd 4.0K Nov 26 16:16 conf
drwxr-x--- 2 ejabberd ejabberd 4.0K Nov 26 16:16 logs
drwxr-xr-x 19 ejabberd ejabberd 4.0K Nov 26 16:16 .
drwxr-x--- 3 ejabberd ejabberd 4.0K Nov 26 16:29 database
drwxr-xr-x 8 root root 4.0K Nov 26 16:16 ..
drwxr-xr-x 2 ejabberd ejabberd 4.0K Nov 26 16:29 ssl
drwxr-xr-x 2 ejabberd ejabberd 4.0K Nov 26 16:16 bin
drwxr-x--- 4 ejabberd ejabberd 4.0K Nov 26 16:16 doc
drwxr-xr-x 46 ejabberd ejabberd 4.0K Nov 26 16:16 lib
-r-------- 1 ejabberd ejabberd 20 Nov 26 00:00 .erlang.cookie
-rwx------ 1 ejabberd ejabberd 4.0M Nov 26 16:16 uninstall
-rw-r--r-- 1 ejabberd ejabberd 15K Nov 26 16:16 uninstall.dat
```