Giter VIP home page Giter VIP logo

centos-dockerfiles's Introduction

CentOS-Dockerfiles

This repository provides Dockerfiles for use with CentOS. Popular implementations here will be published to the CentOS namespace in the docker index.

Contribution Guidelines

Each Dockerfile should contain a README that includes the following:

  • Version of CentOS and Docker that it was built/tested against
  • Instructions for building the Docker image

-- For example: docker build --rm=true -t my/image .

  • Instructions for running the image, including examples for persistent data, port mapping, etc.
  • Examples for testing and/or validating the functionality of the image.
  • Do not include executable scripts. Provide them and mark them as executable in the Dockerfile

-- ADD ./script.sh /usr/bin/ RUN chmod -v +x /usr/bin/script.sh

  • If creating a container for a specific language, specify the version of that language.
  • If yum is used during the build process, run a clean afterwards to reduce the image size.

Building All The Things

An example of building all images found within this git repository can be done with the following two bash for loops from the base dir of your git clone:

--

# Building everything from centos:centos6 base image
for dir in ./*/centos6
do
    pushd $dir &> /dev/null
        # tmp var for short dirname
        tmp=$(dirname $dir)

        # strip all characters leading up to and including '/'
        appname=${tmp##*/}
        disttag=${dir##*/}

        docker build -t $USER/${appname}:${disttag} .
    popd &> /dev/null;
done

# Building everything from centos:centos7 base image
for dir in ./*/centos7
do
    pushd $dir &> /dev/null
        # tmp var for short dirname
        tmp=$(dirname $dir)

        # strip all characters leading up to and including '/'
        appname=${tmp##*/}
        disttag=${dir##*/}

        docker build -t $USER/${appname}:${disttag} .
    popd &> /dev/null
done

--

You'll notice that the appname/disttag structure is laid out on purpose, so if you would prefer to only build a single image this can be done by either following the specific README.md contained with the Dockerfile or with the below guideline:

# $appname and $disttag should be something along the lines of 'httpd' and 
# 'centos7' respectively
cd $appname/$disttag

docker build -t $USER/${appname}:${disttag} .

--

Notes

Known issues:

  • None at this time.

centos-dockerfiles's People

Contributors

adelton avatar arrfab avatar atodorov avatar bamachrn avatar deinarson avatar dharmit avatar directxman12 avatar dustymabe avatar egmar avatar gammamatrix avatar goern avatar jasonbrooks avatar jperrin avatar kadel avatar kbsingh avatar klaver avatar liubin avatar luiseok avatar maxamillion avatar mohammedzee1000 avatar petrkotas avatar procrypt avatar qiawei avatar r4j4h avatar rtnpro avatar smallfish avatar tnozicka avatar vaceletm avatar vpavlin avatar xyntrix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

centos-dockerfiles's Issues

Add the dockerfiles information to the cccp index and insert cccp.yaml files.

From @mohammedzee1000
We need to run these docker files through the current CCCP buildsystem so as the test its functionality. For this, we need to add cccp.yaml files (along with some scripts) to to respective dockerfile folders and add them to the cccp-index so that the cccp build system can run the built-test-delivery cycle on them and produce containers for the same, thereby testing the functionality of the pipeline as well as the dockerfiles themselves.

Multiple LABEL layers when one would do.

Most (all?) of the Dockerfiles in this repo define multiple LABEL layers. But instead of combining them into one layer, each LABEL has its own layer.

  LABEL License=GPLv2
  LABEL Vendor=CentOS

instead of

  LABEL License=GPLv2, Vendor=CentOS

This creates two layers when one will do. This is generally considered an inefficient image and is discouraged in the Docker docs. This appears to be a design decision but I couldn't find any supporting reasons.

Inconsistency in env variables between upstream postgres image and centos one

It seems that centos/postgresql-94-centos7 container uses different but similar environment variables in contrast to upsteam postgres container. This prohibits using centos/postgresql-94-centos7 in application images depending on official postgres container image, e.g.. sentry, without customizing them.

We could use the same nomenclature for the environment variables in the centos based and official postgres container images. This will make adopting centos/postgresql-94-centos7 image much more easier.

ADD EXTENTIOn

Is-it possible to create a container with an EXTENSION (like DB_USER or DB_PASS)?

Example:
docker run ..... -e 'DB_USER=myUser' -e 'EXTENSION=citext'

License for new Dockerfiles?

I notice most (all?) of the Dockerfiles here are GPLv2, inherited from the Fedora Dockerfiles repo. I'm not seeing any contributing guidelines, so I'm wondering whether that's required for new Dockerfiles? If someone wants to contribute a Dockerfile under ASL 2.0, is that acceptable? (While I <3 the GPLv2, it may not be the best license for something like this.)

centos/etherpad broken with incompatible versions

So the centos/etherpad image errors out as

You're running a wrong version of node, or io.js is not installed. You're using v6.7.0, we need v0.10.x, v0.11.x or v0.12.x

Recreate issue as

$ cat docker-compose.yml 
version: "2"

services:
  mariadb:
    image: centos/mariadb
    ports:
      - "$DB_PORT"
    environment:
      MYSQL_ROOT_PASSWORD: $ROOT_PASS
      MYSQL_DATABASE: $DB_NAME
      MYSQL_PASSWORD: $DB_PASS
      MYSQL_USER: $DB_USER

  etherpad:
    image: centos/etherpad
    ports:
      - "80:9001"
    depends_on:
      - mariadb
    environment:
      DB_HOST: $DB_HOST
      DB_DBID: $DB_NAME
      DB_PASS: $DB_PASS
      DB_PORT: $DB_PORT
      DB_USER: $DB_USER

env file

$ cat envs 
DB_HOST=mariadb
ROOT_PASS=etherpad
DB_NAME=etherpad
DB_PASS=etherpad
DB_USER=etherpad
DB_PORT=3306

run as

$ export $(cat envs )  
$ docker-compose up
Creating network "etherpad_default" with the default driver
Pulling mariadb (centos/mariadb:latest)...
Trying to pull repository docker.io/centos/mariadb ... 
[SNIP]
mariadb_1   | Running mysql_install_db ...
mariadb_1   | Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
etherpad_1  | + '[' '!' -z '' ']'
mariadb_1   | 161019 11:46:38 [Note] /usr/libexec/mysqld (mysqld 5.5.50-MariaDB) starting as process 34 ...
etherpad_1  | + sed -i s/DB_HOST/mariadb/ settings.json
etherpad_1  | + sed -i s/DB_DBID/etherpad/ settings.json
etherpad_1  | + sed -i s/DB_PASS/etherpad/ settings.json
etherpad_1  | + sed -i s/DB_PORT/3306/ settings.json
etherpad_1  | + sed -i s/DB_USER/etherpad/ settings.json
etherpad_1  | + ./bin/run.sh
etherpad_1  | You're running a wrong version of node, or io.js is not installed. You're using v6.7.0, we need v0.10.x, v0.11.x or v0.12.x
mariadb_1   | OK
mariadb_1   | Filling help tables...
[SNIP]

See error above etherpad_1 | You're running a wrong version of node, or io.js is not installed. You're using v6.7.0, we need v0.10.x, v0.11.x or v0.12.x

centos/systemd with chef-solo

Trying to setup a Docker image based on centos/systemd, chef faces the below error on any systemctl command:

Failed to get D-Bus connection: Operation not permitted

I'm building the image following this example

Django Dockerfile for CentOS 7 fails to build

Following the instructions from : https://github.com/CentOS/CentOS-Dockerfiles/tree/master/Django/centos7
to build the Django Dockerfile
I'm getting the following error:
Invalid namespace name (), only [a-z0-9_] are allowed, size between 4 and 30
I'm new to Docker and just trying to get a working example going so its possible that I'm doing something very stupid. But the instructions are so simple I'm not sure what I could have messed up.
I don't know what namespace the error refers to.
I'm using Docker version 1.3.2, build 39fa2fa/1.3.2
I just installed CentOS7 with the Gnome desktop.

A problem with docker run centos/systemd :it halts after [ OK ] Reached target Multi-User System.

I pulled image centos/systemd ,and use command : docker run --privileged --name base -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro centos/systemd,but it halted after [ OK ] Reached target Multi-User System. it did not go on

I use Virtualbox to create a CentOS 7.3.1611 on a Mac ,here is more infos :
[root@localhost docker]# docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:05:44 2017
OS/Arch: linux/amd64

Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:05:44 2017
OS/Arch: linux/amd64
Experimental: false
[root@localhost docker]# docker info
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 17.03.1-ce
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-514.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.797 GiB
Name: localhost.localdomain
ID: KUPQ:EB5L:H74L:YMAI:KSCT:HR6R:NBJP:4467:EMFR:IZPI:Y4TO:3BWX
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
##127.0.0.0/8
Registry Mirrors:
https://docker.mirrors.ustc.edu.cn
Live Restore Enabled: false

I don't konw what to do . Is there any body help me ? Thanks a lot !!!
problem

centos/etherpad container when boots up pulls node dependencies

$subject, so this should happen on container build time but this is happening on each container boot. Following are the logs that can help:

+ '[' '!' -z '' ']'
+ sed -i s/DB_HOST/mariadb/ settings.json
+ sed -i s/DB_DBID/etherpad/ settings.json
+ sed -i s/DB_PASS/etherpad/ settings.json
+ sed -i s/DB_PORT/3306/ settings.json
+ sed -i s/DB_USER/etherpad/ settings.json
+ ./bin/run.sh
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> [email protected] install /var/lib/etherpad/src/node_modules/bufferutil
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/.node-gyp/6.9.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
make: Entering directory `/var/lib/etherpad/src/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: g++: Command not found
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 127
make: Leaving directory `/var/lib/etherpad/src/node_modules/bufferutil/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.8.6-201.fc24.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/lib/etherpad/src/node_modules/bufferutil
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
> [email protected] install /var/lib/etherpad/src/node_modules/utf-8-validate
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/.node-gyp/6.9.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
make: Entering directory `/var/lib/etherpad/src/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
make: Leaving directory `/var/lib/etherpad/src/node_modules/utf-8-validate/build'
make: g++: Command not found
make: *** [Release/obj.target/validation/src/validation.o] Error 127
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.8.6-201.fc24.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/lib/etherpad/src/node_modules/utf-8-validate
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
[email protected] /var/lib/etherpad/src
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   +-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
|   +-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| |   `-- [email protected] 
| |     `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | |   `-- [email protected] 
| | |     +-- [email protected] 
| | |     `-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | | +-- [email protected] 
| | | | +-- [email protected] 
| | | | `-- [email protected] 
| | | `-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   | `-- [email protected] 
| |   +-- [email protected] 
| |   +-- [email protected] 
| |   | +-- [email protected] 
| |   | +-- [email protected] 
| |   | +-- [email protected] 
| |   | +-- [email protected] 
| |   | +-- [email protected] 
| |   | +-- [email protected] 
| |   | | +-- [email protected] 
| |   | | `-- [email protected] 
| |   | |   `-- [email protected] 
| |   | `-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | `-- [email protected] 
| | |   +-- [email protected] 
| | |   +-- [email protected] 
| | |   `-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   +-- [email protected] 
| |   | +-- [email protected] 
| |   | `-- [email protected] 
| |   |   `-- [email protected] 
| |   +-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | | +-- [email protected] 
| | | | +-- [email protected] 
| | | | +-- [email protected] 
| | | | | `-- [email protected] 
| | | | `-- [email protected] 
| | | +-- [email protected] 
| | | | `-- [email protected] 
| | | +-- [email protected] 
| | | | `-- [email protected] 
| | | +-- [email protected] 
| | | | +-- [email protected] 
| | | | +-- [email protected] 
| | | | | `-- [email protected] 
| | | | +-- [email protected] 
| | | | `-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   +-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | | `-- [email protected] 
| | | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   +-- [email protected] 
| |   | `-- [email protected] 
| |   +-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | `-- [email protected] 
| | `-- [email protected] 
| |   +-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | | `-- [email protected] 
| | | +-- [email protected] 
| | | | `-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | `-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | `-- [email protected] 
| | |   `-- [email protected] 
| | `-- [email protected] 
| `-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
| `-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | `-- [email protected] 
| |   `-- [email protected] 
| +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | +-- [email protected] 
| | | `-- [email protected] 
| | `-- [email protected] 
| |   `-- [email protected] 
| |     `-- [email protected] 
| `-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   +-- [email protected] 
|   `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
`-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | | +-- [email protected] 
  | | `-- [email protected] 
  | |   `-- [email protected] 
  | +-- [email protected] 
  | | `-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | | `-- [email protected] 
  | |   `-- [email protected] 
  | `-- [email protected] 
  |   +-- [email protected] 
  |   | +-- [email protected] 
  |   | | `-- [email protected] 
  |   | `-- [email protected] 
  |   +-- [email protected] 
  |   `-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | | `-- [email protected] 
  | +-- [email protected] 
  | | +-- [email protected] 
  | | +-- [email protected] 
  | | +-- [email protected] 
  | | `-- [email protected] 
  | +-- [email protected] 
  | +-- [email protected] 
  | `-- [email protected] 
  +-- [email protected] 
  `-- [email protected] 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
Ensure jQuery is downloaded and up to date...
Clearing minified cache...
Ensure custom css/js files are created...
Started Etherpad...
�[31m[2016-11-21 06:57:51.273] [ERROR] console - �[39m(node:13) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
�[31m[2016-11-21 06:57:51.533] [ERROR] console - �[39m(node:13) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
�[33m[2016-11-21 06:57:52.650] [WARN] pluginfw - �[39m/var/lib/etherpad/node_modules/ep_etherpad-lite/node_modules/has-cors requires global@'https://github.com/component/global/archive/v2.0.1.tar.gz' but will load
/var/lib/etherpad/node_modules/ep_etherpad-lite/node_modules/global,
which is version 2.0.1 unmet dependency
�[33m[2016-11-21 06:57:52.663] [WARN] pluginfw - �[39m/var/lib/etherpad/node_modules/ep_etherpad-lite/node_modules/engine.io-client requires xmlhttprequest@'https://github.com/rase-/node-XMLHttpRequest/archive/a6b6f2.tar.gz' but will load
/var/lib/etherpad/node_modules/ep_etherpad-lite/node_modules/xmlhttprequest,
which is version 1.5.0 unmet dependency
�[32m[2016-11-21 06:57:53.969] [INFO] console - �[39mInstalled plugins: 
�[32m[2016-11-21 06:57:53.973] [INFO] console - �[39mReport bugs at https://github.com/ether/etherpad-lite/issues
�[33m[2016-11-21 06:57:53.973] [WARN] console - �[39mCan't get git version for server header
ENOENT: no such file or directory, lstat '/var/lib/etherpad/.git'
�[33m[2016-11-21 06:57:53.974] [WARN] console - �[39mCan't get git version for server header
ENOENT: no such file or directory, lstat '/var/lib/etherpad/.git'
�[32m[2016-11-21 06:57:53.974] [INFO] console - �[39mYour Etherpad version is 1.6.0 ()
�[32m[2016-11-21 06:57:54.106] [INFO] console - �[39mYou can access your Etherpad instance at http://0.0.0.0:9001/
�[33m[2016-11-21 06:57:54.106] [WARN] console - �[39mAdmin username and password not set in settings.json.  To access admin please uncomment and edit 'users' in settings.json

freeipa/centos7 Dockerfile out of date

Thanks for providing these!
The latest centos7 has replaced fakesystemd. I had to apply the following to get it to work:

index f5af1b8..4374ec5 100644
--- a/freeipa/centos7/Dockerfile
+++ b/freeipa/centos7/Dockerfile
@@ -3,7 +3,7 @@ FROM centos:centos7

 MAINTAINER Jan Pazdziora

-RUN yum swap -y -- remove fakesystemd -- install systemd systemd-libs && yum clean all
+RUN yum swap -y -- remove systemd-container systemd-container-libs -- install systemd systemd-libs && yum clean all
 RUN yum -y update && yum clean all

 RUN curl -o /etc/yum.repos.d/mkosek-freeipa-epel-7.repo https://copr.fedoraproject.org/coprs/mkosek/freeipa/repo/epel-7/mkosek-freeipa-epel-7.repo

(I'm relatively new to github, so I'm not sure if/how patches are submitted here, sorry)

HTTPD does not need to run as root

Hey all:
There is no reason for HTTPD docker image to run as root. I am working on building one that does not need root - so it will also run in OpenShift. Let me know if you want me to do PR on it.
Thanks
Steve

unicon error `ImportError: No module named wsgi` on startup through registry/centos6 Dockerfile

As the title says, just starting unicorn up inside a container from the registry/centos6 image causes unicorn to barf and fail to start. My first instinct is perhaps a dependency changed and it's a temporary versioning problem, or else there's some extra config (perhaps through environment variables as /etc/docker-registry.yml suggests?) that I am missing, but I haven't spent much time debugging it.

Here is a snippet of the beginning of the error stream and the end:

2014-11-10 02:26:45 [30] [INFO] Starting gunicorn 18.0
2014-11-10 02:26:45 [30] [INFO] Listening at: http://0.0.0.0:5000 (30)
2014-11-10 02:26:45 [30] [INFO] Using worker: gevent
2014-11-10 02:26:45 [35] [INFO] Booting worker with pid: 35
2014-11-10 02:26:45 [35] [ERROR] Exception in worker process:

.....snip of the 4 children workers failing in succession....

2014-11-10 02:26:45 [38] [INFO] Booting worker with pid: 38
2014-11-10 02:26:45 [38] [ERROR] Exception in worker process:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/ggevent.py", line 165, in init_process
    super(GeventWorker, self).init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.6/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
ImportError: No module named wsgi
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
    worker.init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/ggevent.py", line 165, in init_process
    super(GeventWorker, self).init_process()
  File "/usr/lib/python2.6/site-packages/gunicorn/workers/base.py", line 106, in init_process
    self.wsgi = self.app.wsgi()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/base.py", line 114, in wsgi
    self.callable = self.load()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 62, in load
    return self.load_wsgiapp()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 49, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/usr/lib/python2.6/site-packages/gunicorn/util.py", line 354, in import_app
    __import__(module)
ImportError: No module named wsgi
2014-11-10 02:26:45 [38] [INFO] Worker exiting (pid: 38)
Traceback (most recent call last):
  File "/usr/bin/gunicorn", line 9, in <module>
    load_entry_point('gunicorn==18.0', 'console_scripts', 'gunicorn')()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/wsgiapp.py", line 71, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
  File "/usr/lib/python2.6/site-packages/gunicorn/app/base.py", line 143, in run
    Arbiter(self).run()
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 203, in run
    self.halt(reason=inst.reason, exit_status=inst.exit_status)
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 298, in halt
    self.stop()
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 341, in stop
    self.reap_workers()
  File "/usr/lib/python2.6/site-packages/gunicorn/arbiter.py", line 452, in reap_workers
    raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

After a quick google search I encountered a GitHub issue and a Stackoverflow thread reporting the exact same error, but with different environment-specific fixes to solve the problem. The config sourced in before unicorn is ran sets the mode to local, which if I recall correctly was one of the solutions proposed on Stackoverflow. Hope this helps!

docker-archive/docker-registry#397

http://stackoverflow.com/questions/11532303/heroku-no-module-named-wsgi

From https://encrypted.google.com/search?hl=en&q=ImportError%3A%20No%20module%20named%20wsgi

Firefox/centos6 cannot be built using docker build

When I try to build the container for https://github.com/CentOS/CentOS-Dockerfiles/tree/master/firefox/centos6

It fails with the following error:

Step 9 : RUN chmod -v +x /.vnc/xstartup
---> Using cache
---> dd019e57c173
Step 10 : RUN sed -i '//etc/X11/xinit/xinitrc-common/a [ -x /usr/bin/firefox ] && /usr/bin/firefox &' /etc/X11/xinit/xinitrc
---> Running in bd0db741d712
sed: can't read /etc/X11/xinit/xinitrc: No such file or directory
INFO[0000] The command [/bin/sh -c sed -i '//etc/X11/xinit/xinitrc-common/a [ -x /usr/bin/firefox ] && /usr/bin/firefox &' /etc/X11/xinit/xinitrc] returned a non-zero code: 2

Looks like the /etc/X11/xinit/xinitrc is missing from the base centos:6 image? How can I fix this problem?

To check this further, I commented the sed command and built the container to run it. I can see that xinit directory is missing in the /etc/X11. Are there additional packages needed for xinit?

Also tried with centos7 and that works fine, so looks like the base image for centos6 is missing something?

How to add EnvironmentFile directive to httpd?

I asked this on stackoverflow, but since this is the image I am using and it doesn't yet seem to be documented I thought I might ask here.
http://stackoverflow.com/questions/37366257/how-to-add-environmentfile-directive-to-systemctl-using-docker-with-centos7-http

Basically I am doing:

FROM centos/httpd:latest

RUN printf "HTTP_VAR1=var1-value\n\
HTTP_VAR2=var2-value"\
 >> /etc/environment

RUN mkdir /usr/lib/systemd/system/httpd.service.d &&\
 printf "[Service]\n\
EnvironmentFile=/etc/environment"\
 > /usr/lib/systemd/system/httpd.service.d/environment.conf

COPY entrypoint.sh /entrypoint.sh

Yet my environment variables are not available. Any ideas? Is this a feature opportunity? Will I need to fork this to get it working perhaps? Thanks

rabbitmq fails in OpenShift on permission issues

this container image registry.centos.org/centos/rabbitmq is not built to be suitably run on OpenShift. It fails as shown below:

$ oc logs broker-1-okxyd
/run-rabbitmq-server.sh: line 6: /etc/rabbitmq/rabbitmq.config: Permission denied
set default user = guest and default password = guest
touch: cannot touch '/.run-rabbitmq-server-firstrun': Permission denied
/usr/sbin/rabbitmq-server: line 28: cd: /var/lib/rabbitmq: Permission denied
mkdir: cannot create directory '/var/lib/rabbitmq': Permission denied
Only root or rabbitmq should run rabbitmq-server

The configs used to run this on openshift are as follows:

$ cat broker-deploymentconfig.yaml 
apiVersion: v1
kind: DeploymentConfig
metadata:
  creationTimestamp: null
  labels:
    service: broker
  name: broker
spec:
  replicas: 1
  selector:
    service: broker
  strategy:
    resources: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        service: broker
    spec:
      containers:
      - env:
        - name: RABBITMQ_PASS
          value: guest
        - name: RABBITMQ_USER
          value: guest
        image: ' '
        name: coreapi-broker
        ports:
        - containerPort: 5672
          protocol: TCP
        resources: {}
      restartPolicy: Always
  test: false
  triggers:
  - type: ConfigChange
  - imageChangeParams:
      automatic: true
      containerNames:
      - coreapi-broker
      from:
        kind: ImageStreamTag
        name: broker:latest
    type: ImageChange
status: {}

and

$ cat broker-imagestream.yaml 
apiVersion: v1
kind: ImageStream
metadata:
  creationTimestamp: null
  name: broker
spec:
  tags:
  - annotations: null
    from:
      kind: DockerImage
      name: registry.centos.org/centos/rabbitmq
    generation: null
    importPolicy: {}
    name: latest
status:
  dockerImageRepository: ""

and the openshift version:

$ oc version
oc v1.4.0-rc1+b4e0954
kubernetes v1.4.0+776c994
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://172.17.133.24:8443
openshift v1.4.0-rc1+b4e0954
kubernetes v1.4.0+776c994

wordpress centos 6 - container exits when restarted

The start.sh script calls __check, which exits if the wp-config.php file exitsts, but doesn't that mean that the __run_supervisor() function is never called?

Can someone explain how this is supposed to work? Once the container is run, how do you stop / restart it?

Nginx container does not work as expected.

I was building and testing the nginx container for the purpose of building on container pipeline. The nginx/centos7 container builds, but does not seem to work as expected. The container was built locally with docker build

Command:

$ docker run -d -p 80:80 nginx:centos7
$ curl http://localhost

Output :

curl: (56) Recv failure: Connection reset by peer

docker logs :

2016/10/05 09:38:25 [debug] 1#0: bind() 0.0.0.0:8080 #5 
2016/10/05 09:38:25 [notice] 1#0: using the "epoll" event method
2016/10/05 09:38:25 [debug] 1#0: counter: 00007F4FDF102080, 1
2016/10/05 09:38:25 [notice] 1#0: nginx/1.8.0
2016/10/05 09:38:25 [notice] 1#0: OS: Linux 3.10.0-327.36.1.el7.x86_64
2016/10/05 09:38:25 [notice] 1#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2016/10/05 09:38:25 [debug] 1#0: write: 6, 00007FFD0E2D3720, 2, 0
2016/10/05 09:38:25 [debug] 1#0: setproctitle: "nginx: master process nginx -c /etc/nginx.conf"
2016/10/05 09:38:25 [notice] 1#0: start worker processes
2016/10/05 09:38:25 [debug] 1#0: channel 3:6
2016/10/05 09:38:25 [notice] 1#0: start worker process 9
2016/10/05 09:38:25 [debug] 1#0: sigsuspend
2016/10/05 09:38:25 [debug] 9#0: notify eventfd: 8
2016/10/05 09:38:25 [debug] 9#0: eventfd: 9
2016/10/05 09:38:25 [debug] 9#0: malloc: 00007F4FE0269280:6144
2016/10/05 09:38:25 [debug] 9#0: malloc: 00007F4FDF0B4010:221184
2016/10/05 09:38:25 [debug] 9#0: malloc: 00007F4FE028CB90:106496
2016/10/05 09:38:25 [debug] 9#0: malloc: 00007F4FE02A6BA0:106496
2016/10/05 09:38:25 [debug] 9#0: epoll add event: fd:5 op:1 ev:00002001
2016/10/05 09:38:25 [debug] 9#0: epoll add event: fd:6 op:1 ev:00002001
2016/10/05 09:38:25 [debug] 9#0: setproctitle: "nginx: worker process"
2016/10/05 09:38:25 [debug] 9#0: worker cycle
2016/10/05 09:38:25 [debug] 9#0: epoll timer: -1

centos/systemd conateiner:container attach websocker failed

run container with this command
docker run -itd --privileged -e "container=docker" -v /sys/fs/cgroup:/sys/fs/cgroup:ro centos/systemd:latest /usr/sbin/init

when we use websocket to attach this container ,we can not see the stdin
image

if i start the getty.target service in this container, the websocker work well,but the agetty occupy high cpu
image
( run two container,you will see this high cpu)

any solutions?

Couchdb container does not build correctly

While attempting to build the couchdb container on centos 7 for container pipeline, i found that this containers fails build.

Command:

$ docker build -t couchdb:centos7 .

Output:

Sending build context to Docker daemon 23.04 kB
Step 1 : FROM centos:centos7
 ---> 980e0e4c79ec
Step 2 : MAINTAINER The CentOS Project <[email protected]>
 ---> Using cache
 ---> a9e9ceab8a0f
Step 3 : RUN yum -y update; yum clean all
 ---> Using cache
 ---> d87e8388fd07
Step 4 : RUN yum -y install epel-release
 ---> Running in eb7d38a8224f
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: mirror.centos.org
 * extras: mirror.centos.org
 * updates: mirror.centos.org
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch             Version         Repository        Size
================================================================================
Installing:
 epel-release           noarch           7-6             extras            14 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 14 k
Installed size: 24 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-6.noarch                                      1/1 
  Verifying  : epel-release-7-6.noarch                                      1/1 

Installed:
  epel-release.noarch 0:7-6                                                     

Complete!
 ---> e0bef8668d65
Removing intermediate container eb7d38a8224f
Step 5 : RUN yum -y install couchdb; yum clean all
 ---> Running in 9731b76f8172
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.centos.org
 * epel: epel.check-update.co.uk
 * extras: mirror.centos.org
 * updates: mirror.centos.org
No package couchdb available.
Error: Nothing to do
Loaded plugins: fastestmirror, ovl
Cleaning repos: base epel extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
 ---> e4dc2cc52d9b
Removing intermediate container 9731b76f8172
Step 6 : RUN sed -e 's/^bind_address = .*$/bind_address = 0.0.0.0/' -i /etc/couchdb/default.ini
 ---> Running in 469f96d6cbd6
sed: can't read /etc/couchdb/default.ini: No such file or directory
The command '/bin/sh -c sed -e 's/^bind_address = .*$/bind_address = 0.0.0.0/' -i /etc/couchdb/default.ini' returned a non-zero code: 2

CROND fails to run schedules due to PAM for centos:latest

In the default setup CROND will not run even with cronie installed and the process is running. This seems to be an issue with PAM. In "/etc/pamd.d/crond" the line "session required pam_loginuid.so" is causing CROND to fail. The only solution that seemed to work was the following:

RUN sed -i '/session required pam_loginuid.so/d' /etc/pamd.d/crond

Once removed or commented out everything CROND worked as expected.

This was on centos:latest

Docker issue "initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart"

Please note I've posted a similar issue on this in SO here.

I understand that docker prevents centos to use the standard initctl and that this is done to follow the approach to have "simple" services per docker. Unfortunately it is not always so simple and it would be more complex to do things differently.

In my case I use R and the rstudio IDE, & currently it is not possible anymore to have them on the same centos box without getting the infamous error:

initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

What I'm looking for, ideally, is:

  • confirmation that supervisord can fix the problem
  • clear guidelines on how to fix it

default root password in various scenarios

This is regarding Docker official Centos6 and Centos7 images

There are 3 separate questions:
(1) When started using "docker RUN centos", what is the root password and how to find it?
(2) When started from a derived image (image derived from offical docker centos via using Dockerfile FROM entry) , what is the root password and how to find it?
(3) In both cases, if the answer is "you need to set root password inside Dockerfile", what is the best recommended method to set it. ("yum install passwd; passwd;" is one option, but is this the best practice? )

Thank you very much!

Earthquake container does not build correctly.

While attempting to build the earthquake/centos7 container for the purpose of adding it to the Container Pipeline, i found that the earthquake container does not build. It fails out at step 5 during a build.

Command :
$ docker build -t earthquake:centos7 .

Result :

Sending build context to Docker daemon 23.04 kB
Step 1 : FROM centos:centos7
Trying to pull repository registry.centos.org/centos ... 
Pulling repository registry.centos.org/centos
Error: image centos not found
Trying to pull repository docker.io/library/centos ... 
centos7: Pulling from docker.io/library/centos

Digest: sha256:2ae0d2c881c7123870114fb9cc7afabd1e31f9888dac8286884f6cf59373ed9b
Status: Downloaded newer image for docker.io/centos:centos7
 ---> 980e0e4c79ec
........
Step 5 : RUN gem install earthquake
 ---> Running in be56ee31ee6b
Building native extensions.  This could take a while...
Successfully installed eventmachine-1.2.0.1
Successfully installed simple_oauth-0.1.9
Building native extensions.  This could take a while...
ERROR:  Error installing earthquake:
    activesupport requires Ruby version >= 2.2.2.
Successfully installed http_parser.rb-0.5.3
Successfully installed twitter-stream-0.1.16
Successfully installed notify-0.5.2
Successfully installed i18n-0.7.0
Successfully installed thread_safe-0.3.5
Successfully installed tzinfo-1.2.2
Successfully installed minitest-5.9.1
Successfully installed concurrent-ruby-1.0.2
The command '/bin/sh -c gem install earthquake' returned a non-zero code: 1

Freeipa centos 7 docker file broken

It appears the builds for freeipa container on centos 7 are broken. Faced error on pipeline, validated with local build.

$ docker build -t fipa -f Dockerfile .
.......
Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
 ---> 099dc89205d4
Removing intermediate container c11c65bf5c59
Step 4 : RUN echo '7fe9c3084d2b8ba846c23458be86c8677693f0eb /etc/tmpfiles.d/opendnssec.conf' | sha1sum --quiet -c && mv -v /etc/tmpfiles.d/opendnssec.conf /usr/lib/tmpfiles.d/opendnssec.conf
 ---> Running in 752b7f56ed1f
'/etc/tmpfiles.d/opendnssec.conf' -> '/usr/lib/tmpfiles.d/opendnssec.conf'
 ---> 82393acf3911
Removing intermediate container 752b7f56ed1f
Step 5 : RUN echo '5a70f1f3db0608c156d5b6629d4cbc3b304fc045 /etc/systemd/system/sssd.service.d/journal.conf' | sha1sum --quiet -c && rm -vf /etc/systemd/system/sssd.service.d/journal.conf
 ---> Running in 2799008a98ad
removed '/etc/systemd/system/sssd.service.d/journal.conf'
 ---> 3c66fee58625
Removing intermediate container 2799008a98ad
Step 6 : RUN find /etc/systemd/system/* '!' -name '*.wants' | xargs rm -rvf
 ---> Running in 70bb069a815c
removed '/etc/systemd/system/default.target'
removed '/etc/systemd/system/default.target.wants/systemd-readahead-collect.service'
removed '/etc/systemd/system/default.target.wants/systemd-readahead-replay.service'
removed '/etc/systemd/system/getty.target.wants/[email protected]'
removed directory: '/etc/systemd/system/httpd.d'
removed '/etc/systemd/system/multi-user.target.wants/remote-fs.target'
removed '/etc/systemd/system/multi-user.target.wants/nfs-client.target'
removed '/etc/systemd/system/remote-fs.target.wants/nfs-client.target'
removed '/etc/systemd/system/sockets.target.wants/rpcbind.socket'
removed directory: '/etc/systemd/system/sssd.service.d'
removed '/etc/systemd/system/system-update.target.wants/systemd-readahead-drop.service'
 ---> fcd4558921b2
Removing intermediate container 70bb069a815c
Step 7 : RUN for i in basic.target sysinit.target network.service netconsole.service ; do rm -f /usr/lib/systemd/system/$i && ln -s /dev/null /usr/lib/systemd/system/$i ; done
 ---> Running in 6bc755fa70e2
 ---> f3f684c5cb9d
Removing intermediate container 6bc755fa70e2
Step 8 : RUN echo LANG=C > /etc/locale.conf
 ---> Running in 8d5a4ce875ef
 ---> 24344cf2e9f2
Removing intermediate container 8d5a4ce875ef
Step 9 : RUN /sbin/ldconfig -X
 ---> Running in 547c27d632d5
 ---> db005aefbff7
Removing intermediate container 547c27d632d5
Step 10 : COPY init-data ipa-server-configure-first ipa-server-status-check exit-with-status ipa-volume-upgrade-* /usr/sbin/
 ---> 29f50049b44f
Removing intermediate container 66b548f5ba84
Step 11 : RUN chmod -v +x /usr/sbin/init-data /usr/sbin/ipa-server-configure-first /usr/sbin/ipa-server-status-check /usr/sbin/exit-with-status /usr/sbin/ipa-volume-upgrade-*
 ---> Running in e92b42f26fc0
mode of '/usr/sbin/init-data' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-server-configure-first' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-server-status-check' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/exit-with-status' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-volume-upgrade-0.5-0.6' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-volume-upgrade-0.5-1.0' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-volume-upgrade-0.5-1.1' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-volume-upgrade-0.6-1.0' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-volume-upgrade-0.6-1.1' retained as 0775 (rwxrwxr-x)
mode of '/usr/sbin/ipa-volume-upgrade-1.0-1.1' retained as 0775 (rwxrwxr-x)
 ---> 3ae66427fb9e
Removing intermediate container e92b42f26fc0
Step 12 : COPY container-ipa.target ipa-server-configure-first.service ipa-server-upgrade.service ipa-server-update-self-ip-address.service /usr/lib/systemd/system/
 ---> ab2f687743ab
Removing intermediate container a3702d1cd3f5
Step 13 : RUN rmdir -v /etc/systemd/system/multi-user.target.wants 	&& mkdir /etc/systemd/system/container-ipa.target.wants 	&& ln -s /etc/systemd/system/container-ipa.target.wants /etc/systemd/system/multi-user.target.wants
 ---> Running in d1ae3dfbe8a7
rmdir: removing directory, '/etc/systemd/system/multi-user.target.wants'
 ---> 880a75f5081a
Removing intermediate container d1ae3dfbe8a7
Step 14 : RUN systemctl set-default container-ipa.target
 ---> Running in 8dcda8654248
Created symlink /etc/systemd/system/default.target, pointing to /usr/lib/systemd/system/container-ipa.target.
 ---> 5c622bb019c3
Removing intermediate container 8dcda8654248
Step 15 : RUN systemctl enable ipa-server-configure-first.service
 ---> Running in 23fbc327f630
Created symlink /etc/systemd/system/container-ipa.target.wants/ipa-server-configure-first.service, pointing to /usr/lib/systemd/system/ipa-server-configure-first.service.
 ---> 9c82243a5d74
Removing intermediate container 23fbc327f630
Step 16 : RUN mkdir -p /usr/lib/systemd/system/systemd-poweroff.service.d && ( echo '[Service]' ; echo 'ExecStartPre=/usr/bin/systemctl switch-root /usr /sbin/exit-with-status' ) > /usr/lib/systemd/system/systemd-poweroff.service.d/exit-via-chroot.conf
 ---> Running in 0474c4445462
 ---> 8cde1a62d656
Removing intermediate container 0474c4445462
Step 17 : RUN groupadd -g 389 dirsrv ; useradd -u 389 -g 389 -c 'DS System User' -d '/var/lib/dirsrv' --no-create-home -s '/sbin/nologin' dirsrv
 ---> Running in a96e79a0430e
groupadd: group 'dirsrv' already exists
useradd: user 'dirsrv' already exists
The command '/bin/sh -c groupadd -g 389 dirsrv ; useradd -u 389 -g 389 -c 'DS System User' -d '/var/lib/dirsrv' --no-create-home -s '/sbin/nologin' dirsrv' returned a non-zero code: 9

ownCloud Dockerfile

I think the ownCloud Dockerfiles are going to need some work, perhaps may not want to include them at this time. AFAICT, ownCloud isn't packaged for CentOS (though it is for Fedora). Most of the tutorials I've found online are about just grabbing packages or source from third parties.

MariaDB / mysqld is stopped with SIGKILL

mysqld_safe, which is the main process in the MariaDB image, does not forward SIGTERM to mysqld, forcing docker to kill it and its children (including mysqld) with SIGKILL, i.e. without giving mysqld a chance perform a clean shutdown.
The official Docker MariaDB image calls mysqld directly instead of mysqld_safe and avoids this issue.

Docker registry builds are failing for httpd

Builds of centos/httpd are failing since at least 2015-12-28.

https://hub.docker.com/r/centos/httpd/builds/

Looking at the most recent failure, it seems there are issues with updating httpd
https://hub.docker.com/r/centos/httpd/builds/bmjn5nzj2xv683uoem6mckr/

 Installing : httpd-2.4.6-40.el7.centos.x86_64 6/6�[91mError unpacking rpm package httpd-2.4.6-40.el7.centos.x86_64�[0m�[91m �[0m error: unpacking of archive failed on file /usr/sbin/suexec: cpio: cap_set_file error: httpd-2.4.6-40.el7.centos.x86_64: install failed

It seems like this could be related to the issue opened with the docker team: moby/moby#6980

Building wordpress/centos7 fails because /var/www/html does not exist

I'm a Docker idiot, so forgive me. I'm just trying to follow the README for wordpress/centos7.

I'm working on Mac OS 10.9.5 and using docker 1.2.0/fa7b24f with boot2docker 1.2.0/a551732.

I do this:

mymac $ boot2docker ssh
docker@boot2docker $ cd /home/docker/CentOS-Dockerfiles/wordpress/centos7
docker@boot2docker $ sudo docker build -rm -t jbrains/wordpress:centos7 .

and it eventually fails like this:

Step 11 : RUN mv /wordpress/* /var/www/html/.
 ---> Running in 46fe5f389322
mv: target '/var/www/html/.' is not a directory
2014/10/11 02:28:44 The command [/bin/sh -c mv /wordpress/* /var/www/html/.] returned a non-zero code: 1

I poked around and found that /var/www doesn't exist, let alone /var/www/html.

I have no idea. Thanks.

Request for cron implementation

@jperrin I'm struggling to get a basic cron service running on centos:latest

RUN yum -y install cronie
ADD crontab /etc/crontab
RUN chmod 644 /etc/crontab
RUN chown root:root /etc/crontab
CMD source /etc/sysconfig/crond && /usr/sbin/crond -n $CRONDARGS

I thought this would do it, but the cron process "just hangs" and I can't see anything by tailing /var/log/cron or redirecting output from an individual cron task. I'm used to using the service command, and while I feel like I got close to a recipe I'm not making much progress on my own. I've found a supervisord implementation somewhere but I'm looking for a pure cron box.

Building wordpress/centos6 fails because of file permission errors

After failing to build wordpress/centos7 (see #10) I wanted to see whether I could build wordpress/centos6. I can't.

I'm working on Mac OS 10.9.5 and using docker 1.2.0/fa7b24f with boot2docker 1.2.0/a551732.

I do this:

mymac $ boot2docker ssh
docker@boot2docker $ cd /home/docker/CentOS-Dockerfiles/wordpress/centos7
docker@boot2docker $ sudo docker build -rm -t jbrains/wordpress:centos7 .

and it eventually fails like this:

Step 11 : RUN mv /wordpress/* /var/www/html/.
 ---> Running in 0181fff08398
mv: will not create hard link `/var/www/html/./wp-content/themes' to directory `/var/www/html/./wp-admin/css'
mv: cannot create hard link `/var/www/html/./wp-content/index.php' to `/var/www/html/./wp-admin/network': Operation not permitted
mv: will not create hard link `/var/www/html/./wp-content/plugins' to directory `/var/www/html/./wp-admin/includes'
mv: cannot create hard link `/var/www/html/./wp-includes/l10n.php' to `/var/www/html/./wp-admin/user': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/media.php' to `/var/www/html/./wp-admin/js': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/template-loader.php' to `/var/www/html/./wp-admin/images': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/feed-rss2-comments.php' to `/var/www/html/./wp-admin/css/colors': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/class-wp-ajax-response.php' to `/var/www/html/./wp-admin/css/colors/light': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/class-wp-customize-section.php' to `/var/www/html/./wp-admin/css/colors/blue': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/class-smtp.php' to `/var/www/html/./wp-admin/css/colors/ocean': Operation not permitted
mv: will not create hard link `/var/www/html/./wp-includes/css' to directory `/var/www/html/./wp-admin/css/colors/sunrise'
mv: cannot create hard link `/var/www/html/./wp-includes/class-wp-customize-setting.php' to `/var/www/html/./wp-admin/css/colors/midnight': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/theme.php' to `/var/www/html/./wp-admin/css/colors/coffee': Operation not permitted
mv: cannot create hard link `/var/www/html/./wp-includes/post.php' to `/var/www/html/./wp-admin/css/colors/ectoplasm': Operation not permitted
2014/10/11 02:52:01 The command [/bin/sh -c mv /wordpress/* /var/www/html/.] returned a non-zero code: 1

I have no idea. Thanks.

centos/registry:2 image is missing on Docker Hub

centos/registry:2 is missing on Docker Hub.

@jperrin
You merged PR #47 which stated:

Please set up an automated build on Docker Hub and publish this probably as "centos/registry:2".

but this image is missing on Docker Hub.

Please set up this automated build.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.