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
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 sudo yum install docker-ce docker-ce-cli 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
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 = "" location = "" 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 but when […]

By Deepak
Categorised as centos8, docker,, redhat, ssl Tagged , , , ,

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

I have a container whose image is based on I load this two scripts to the container: #!/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 #!/usr/bin/expect -f set timeout -1 spawn ./ expect "Enter your namer" […]

By IsaIkari
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:// But I have to go on the catalog site to inspect the Dockerfile of this image: Is the any way of inspecting the Dockerfile of an image hosted on an […]

By giulianopz
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 […]

Categorised as docker, redhat Tagged ,

Deploy Image in an local Openshift Error

I’m trying to deploy an image from "" 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 "" I’m behind a proxy so maybe that’s the problem, maybe I have to login to docker or enable something […]

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

Docker swarm service create can’t pull images from

I’ve been trying to pull images from the 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 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
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