What is the difference between normal docker image and s2i image?
Asked Answered
B

0

6

I tried running a centos:centos7 docker image in interactive mode it worked fine and container started successfully, but when I try running centos/python-36-centos7:latest , the below text was shown instead of container.

This is a S2I python-3.6 centos base image:
To use it, install S2I: https://github.com/openshift/source-to-image
Sample invocation:
s2i build https://github.com/sclorg/s2i-python-container.git --context-dir=3.6/test/setup-test-app/ centos/python-36-centos7 python-sample-app
You can then run the resulting image via: podman run -p 8080:8080 python-sample-app

Refer the attached screenshot Image screenshot

What is the difference between these two images?

Businesslike answered 31/7, 2020 at 6:45 Comment(1)
The README at github.com/openshift/source-to-image explains everything nicely.Robena

© 2022 - 2024 — McMap. All rights reserved.