How to create a docker base image?

My local system is ubuntu 14.04. In this local system, I installed VM which contains sles 12. In this local VM (sles 12), I configure some of the application of my use.

I’m totally new to Docker. I want to create a docker base image which contains this sles 12 image into which my applications are also present.

  • Docker with two web application containers
  • ecs-cli compose service up doesn't terminate
  • Are docker containers destroyed when machine is restarted?
  • How to run the latest docker container I created?
  • Can travis-ci run docker?
  • Closed Pipe error while doing sftp in vm using docker
  • How I can create such a docker image, in which sles 12 os is available and into that my applications also can be run?

  • HTTP 504 Gateway Time-out when serving static file with Django (Nginx + Gunicorn)
  • How to set the name of a Docker container using REST API
  • Wget numeric pattern in Dockerfile
  • Update a Deployment image in Kubernetes
  • How docker treats fsync on guest filesystem? Is it possible to lost data during host system crash?
  • Elasticsearch deployment on google app engine flex
  • 2 Solutions collect form web for “How to create a docker base image?”

    The docs have a section on creating base images.

    The FROM will still be required but you can use the reserved “scratch” name here to create a base image from scratch (nice naming there Docker)

    FROM scratch
    ADD hello /
    CMD ["/hello"]
    

    Taken from the section on creating a base image using scratch

    First of all, create a base SLES image. Luckily for you, this process is [semi]automated by SUSE through the utility called sle2docker. A manual can be found here:
    https://www.suse.com/documentation/sles-12/book_sles_docker/data/cha_sle2docker_installation.html
    https://github.com/SUSE/sle2docker

    Then you should run your container, install and setup your custom software and do docker commit to create you personal customized image.
    https://docs.docker.com/engine/tutorials/dockerimages/

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.