Spring Boots Integration test with postgres using Docker

I use CentOS7 on vagrant to prepare docker environment. let’s start with install docker on CentOS

  • Install Epel Release

  • $sudo yum -y install epel-release
    $sudo yum -y update

  • Check linux kernel
  • I use docker 1.12rc which require linux minimum 3.10.

    $uname -r
    3.10.0-327.22.2.el7.x86_64

  • Add Docker Repository
  • $ sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
    [dockerrepo]
    name=Docker Repository
    baseurl=https://yum.dockerproject.org/repo/experimental/centos/7/
    enabled=1
    gpgcheck=1
    gpgkey=https://yum.dockerproject.org/gpg
    EOF
  • Install docker

  • $sudo yum -y install docker-engine

    Some case you will be installed previous version of docker (1.11xx) because you have some dependency package that pre-installed with previous version.
    To check and remove that package use following command line.

    $sudo yum -y remove $(rpm -qa|grep docker)
    $sudo yum -y install docker-engine

    Leave a Reply