ealeon
ealeon

Reputation: 12452

Dockerfile FROM for rhel images

I would like to create a Dockefile as below

FROM <rhel6/7>

# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN addgroup redis && useradd -g redis -ms /bin/bash redi

RUN mkdir /data && chown redis:redis /data
VOLUME /data
WORKDIR /data

# Copy the current directory contents into the container at /app
ADD . /data

# Run app.py when the container launches
CMD ["/usr/software/rats/bedrock/bin/python2.7", "/data/test_redis.py"]

what do i replace FROM <rhel6/7> with?

Upvotes: 0

Views: 8302

Answers (2)

Manu
Manu

Reputation: 396

I just ran into this problem too!

  1. You can browse from Red Hat Container Catalog under "Products" section and choose the image you want
  2. Most 2 commons right now are RHEL 7 and RHEL 7 Atomic (the new one oriented to host container)
  3. In "Get Latest Image" you can choose from different platform from OpenShift to Docker
  4. Just type the command given docker pull registry.access.redhat.com/rhel7-atomic for example

Everything could have been way easier but you know it's Red Hat...

Upvotes: 1

Related Questions