Questions tagged redhat

Explore the latest questions and answers asked by our top developers.

How to give non-root user permission to make and give access to a folder in a Dockerfile

I am trying to create/permission to folders using a non-root user using an image from ubi8/ubi-minimal redhat. Here are two questions: Make a folder: Another way to give non-user permission to create folders and give permission to folders. I have searched a bit. Could be possible under the RUN command after it installs all package […]

By Bebe
Published
Categorised as docker, dockerfile, redhat, redhat-containers Tagged , , ,

Unable to install Docker on RedHat version 7.9

I am trying to install docker on RHEL 7.9 version. Below are commands which I have used for same. sudo yum install -y yum-utils sudo yum-config-manager –add-repo https://download.docker.com/linux/rhel/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io Below is the error received on running the above commands. Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-manager This system is not […]

By Karan Nayyar
Published
Categorised as docker, docker-compose, linux, redhat, unix Tagged , , , ,

Change default image repository in Openshift 4.7

How can I change default docker image registry in Openshift ? I already modified /etc/containers/registries.conf in workers and master nodes and put something like this but it didn’t work. [[registry]] prefix = "my_private_registry.com" location = "my_private_registry.com" insecure = false How can I change the default repo? Thank you Source: Docker Questions

unable to authenticate quay regsitry with remote docker login in terminal

I installed red hat quay in a centos based vm. I installed certs (openssl/letsencrypt) also for quay subdomain. quay and other dependencies are running in a docker container inside the VM. After setting up QUAY and getting certs in quay configuration I am able to login into the subdomain using ssl with https://quay.example.com but when […]

By Deepak
Published
Categorised as centos8, docker, quay.io, redhat, ssl Tagged , , , ,

How to run an expect script in a redhat-ubi-minimal container

I have a container whose image is based on registry.access.redhat.com/ubi8/ubi-minimal. I load this two scripts to the container: que.sh #!/bin/bash echo "Enter your name" read $REPLY echo "Enter your age" read $REPLY echo "you age is $age" echo "Enter your salary" read $REPLY ans.sh #!/usr/bin/expect -f set timeout -1 spawn ./que.sh expect "Enter your namer" […]

By IsaIkari
Published
Categorised as bash, docker, expect, redhat Tagged , , ,

How to inspect Dockerfile of an image hosted on an external registry with skopeo?

I can get some metadata (labels, env variables, tags, etc.) of an image hosted on the Red Hat catalog with skopeo: skopeo inspect docker://registry.access.redhat.com/ubi8/httpd-24:1-161 But I have to go on the catalog site to inspect the Dockerfile of this image: https://catalog.redhat.com/software/containers/ubi8/httpd-24/6065b844aee24f523c207943?container-tabs=dockerfile Is the any way of inspecting the Dockerfile of an image hosted on an […]

By giulianopz
Published
Categorised as docker, dockerfile, podman, redhat Tagged , , ,

Use Satellite repositories during docker build on RHEL8

I need to be able to use my company’s satellite repository while building docker image on top of Red Hat 8 UBI image. I was able to achieve that by copying from host machine those files: /etc/yum.repos.d/ /etc/rhsm /etc/pki/ to image during build, however it doesn’t seem to be elegant solution. Is there any way […]

By GRzA
Published
Categorised as docker, redhat Tagged ,

Deploy docker.io Image in an local Openshift Error

I’m trying to deploy an image from docker.io "docker.io/library/jboss-webserver54-openjdk11-tomcat9-openshift-rhel7:latest" and its giving an error, it happens with others images also. It is giving me the error: you may not have access to the container image "docker.io/library/jboss-webserver54-openjdk11-tomcat9-openshift-rhel7:latest" I’m behind a proxy so maybe that’s the problem, maybe I have to login to docker or enable something […]

By Gustavo
Published
Categorised as docker, openshift, redhat, spring, tomcat Tagged , , , ,

Docker swarm service create can’t pull images from registry.redhat.io

I’ve been trying to pull images from the registry.redhat.io registry using my redhat credentials and registry service account token I created and imported to ~/.docker/config.json. But for some reason I’m unable to pull images when creating a service. For example: docker service create -p 8080:8080 –name httpd registry.redhat.io/rhel8/httpd-24 generates the message: 72s3v9glpink0xnqvlsaoe0w9 overall progress: 0 […]

How to fix: System has not been booted with systemd as init system in Docker(Centos 7)

I try to create a Docker Postgres Container with Centos 7 but when I run: /usr/pgsql-13/bin/postgresql-13-setup initdb I get the error : System has not been booted with systemd as init system Failed to connect to bus failed to find PGDATA setting in postgresql-13.service thank you for any suggestions Source: Docker Questions

By thierno balde
Published
Categorised as centos7, docker, dockerfile, postgresql, redhat Tagged , , , ,
1 4

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq