Public | Automated Build

Last pushed: 13 hours ago
Short Description
Simple container used for all startx based services and applications containers
Full Description

Docker OS Images : CentOS 7

Simple container used for all startx based services and applications published in Dockerhub registry.
This container contain updated core OS rpm (kernel, libs,...) as well as usefull tools like pwgen, tar, zip, psmisc, procps, coreutils, findutils, wget

please visit startx docker-images homepage
or other OS distributions and flavours

Container flavours

Version Docker Hub repository Openshift CentOS distribution
latest startx/centos:latest imageStreams deployement Centos 7 (kernel 3.10 + GNU 3.10 )
7 startx/centos:7 imageStreams deployement Centos 7 (kernel 4.2 + GNU 3.10 )
6 startx/centos:6 N/A Centos 6 (kernel 3.16 + GNU 3.6 )

Running this image

Running from dockerhub registry

  • with docker you can run docker run -it --name="centos7" startx/centos:7 from any docker host
  • with docker-compose you can create a docker-compose.yml file with the following content
    centos:
    image: startx/centos:7
    container_name: "os-centos7"
    

Using this image as S2I builder

You can use this image as an s2i builder image.

s2i build https://github.com/startxfr/docker-images-example-bash startx/centos:7 test-centos7
docker run --rm -i -t test-centos7

Using this image as base container

You can use this Dockerfile template to start a new personalized container based on this container

FROM startx/centos:7
#... your container specifications
CMD ["/bin/sx"]

Environment variable

Variable Type Default Description
SX_VERSION string 7 container version
SX_TYPE string OS Container family (os, service, application). could be enhanced
SX_SERVICE string centos Define the type of service or application provided
SX_ID auto startx/centos Container ID coresponding to the image repository
SX_NAME auto yes Container name
SX_SUMMARY auto yes Container purpose description

For advanced users

You you want to use this container and code to build and create locally this container. You can follow theses instructions to setup and working environment.

This section will help you if you want to :

  • Get latest version of this container OS
  • Enhance container content by adding instruction in Dockefile before build step

You must have a working environment with the source code of this repository. Read and follow how to setup your working environment to get a working directory. The following instructions assume you are at the top level of your working directory.

Build & run a container using docker

  1. Switch to the flavour branch with git branch centos7
  2. Jump into the container directory with cd OS
  3. Build the container using docker build -t centos .
  4. Run this container
    1. Interactively with docker run -it centos. If you add a second parameter (like /bin/bash) to will run this command instead of the default entrypoint. Usefull to interact with this container (ex: /bin/bash, /bin/ps -a, /bin/df -h,...)
    2. As a daemon with docker run -d centos

Build & run a container using docker-compose

  1. Switch to the flavour branch with git branch centos7
  2. Jump into the container directory with cd OS
  3. Run this container
    1. Interactively with docker-compose up Startup logs appears and escaping this command stop the container
    2. As a daemon with docker-compose up -d. Container startup logs can be read using docker-compose logs
Docker Pull Command
Owner
startx
Source Repository