Questions tagged centos7

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

Install AWX 17.1 and Docker-Compose 1.29.2 for CentOs7

My Server: Virtual hardware: 2 vCPU / 4 Go OS: CentOS Linux release 7.9.2009 Docker version 20.10.9 Docker Compose version 1.29.2 –> 2 installation methods Ansible 2.9.25-1 libselinux-python3 python3-pip / pip 21.3.1 Python 2.7.5 Python 3.6.8 2 installation methods of Docker Compose: by download from github: cp docker-compose-Linux-x86_64-1.29.2 /usr/local/bin/docker-compose by PIP: pip3 install docker-compose –proxy […]

By VMX
Published
Categorised as ansible, ansible-awx, centos7, docker, docker-compose Tagged , , , ,

AWX17.1 install on CentOS7.9: Failed to import the required Python library. Ansible is using the wrong Python interpreter [closed]

My Server : Virtual hardware : 2 vCPU / 4 Go OS : CentOS Linux release 7.9.2009 Docker I download last Docker RPM’s files from https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ : docker-ce-20.10.9-3.el7.x86_64.rpm docker-ce-cli-20.10.9-3.el7.x86_64.rpm containerd.io-1.4.9-3.1.el7.x86_64.rpm docker-ce-rootless-extras-20.10.9-3.el7.x86_64.rpm docker-scan-plugin-0.9.0-3.el7.x86_64.rpm I install Docker : # yum -y install containerd.io-1.4.9-3.1.el7.x86_64.rpm # yum -y install docker-scan-plugin-0.9.0-3.el7.x86_64.rpm docker-ce-cli-20.10.9-3.el7.x86_64.rpm # yum -y install docker-ce-20.10.9-3.el7.x86_64.rpm docker-ce-rootless-extras-20.10.9-3.el7.x86_64.rpm # docker […]

CentOS7 Docker Install Failing

Following https://docs.docker.com/engine/install/centos, I installed docker using:$ sudo yum install docker-ce docker-ce-cli containerd.io which generated INSTALL OUTPUT below. I had no errors until I tried to start it$ sudo systemctl start docker, which resulted in the STATUS ERROR below. Looks like there’s something wrong with containerd. You can see in my HOST DETAILS below that the […]

By BobC
Published
Categorised as centos7, containerd, docker Tagged , ,

How to create index.html using dockerfile?

I’m trying to create a simple static web using nginx, and want to have everything created by Dockerfile, the problem is when ever I tried to create an index.html file, it come out with error, I even tried to test it and its working with "index.htm" but not with the correct format. FROM centos:7 #update […]

By majid khatib shahidi
Published
Categorised as centos7, docker, dockerfile, html Tagged , , ,

Is there a way to avoid login when using –privileged to run a docker container

I’m using a docker of image centos:7.9.2009, is there a way to avoid login when using –privileged=true to run a container? Here is the command: docker run -d –privileged=true -v /sys/fs/cgroup:/sys/fs/cgroup –name centos_base centos:7.9.2009 /usr/sbin/init enter image description here Source: Docker Questions

Cavium octnet is used as a network card. Starting the docker container will trigger a soft interrupt exception and the network will be blocked

After an exception occurs, we will see that ksoftirqd/x takes up very high. enter image description here enter image description here ifconfig saw a huge increase in TX over a period of time. enter image description here enter image description here If it is an intel network card, there is no such problem. Does anyone […]

By bibixia
Published
Categorised as centos7, docker, interrupt Tagged , ,

Error when starting docker ce service in centos 7

I have just installed docker in my centos 7 system by following the steps on docker documentation, but when I’m trying to start the service, it failed, and the error that shows in journalctl is like this. Is there something that I should do for the firewall setting? Nov 05 13:21:03 localhost.localdomain firewalld[743]: 2021-11-05 13:21:03 […]

By esthrim
Published
Categorised as centos7, docker, docker-engine Tagged , ,

Can’t find postgresql client installed using yum on cent os 7 running in docker

I have a CentOS image running in Docker. I don’t have root access to this image. The only thing I can control is the dockerfile. Anyway, I have the yum command to install postgresql in my dockerfile. From the output I can see that the yum command is succeeding. Now when I ssh into the […]

By 90abyss
Published
Categorised as centos7, docker, postgresql Tagged , ,

Unable to install google-chrome-stable 95 on Centos 7

I’m trying to install the latest version of google-chrome-stable 95.0.4638.54 inside a container with CentOS 7 as base image. My Dockerfile: FROM centos:7 LABEL maintainer="[email protected]" ADD ./google-chrome.repo /etc/yum.repos.d/google-chrome.repo RUN yum clean all && yum -y install google-chrome-stable The google-chrome.repo: [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub When building the Dockerfile, I’m getting the following error: Error: […]

By Sandro Rodrigues
Published
Categorised as centos7, dockerfile, glibc, google-chrome Tagged , , ,

testInfra py.test Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I’m using testInfra/py.test from inside centos 7 docker container in Jenkins. Seeing below error E RuntimeError: CommandResult(command=’/etc/sensu/plugins/check-disk-free.rb -l tmpfs,tmp -c 1024′, exit_status=255, stdout=None, stderr=’Permission denied (publickey,gssapi-keyex,gssapi-with-mic).rn’) The command I’m using is: py.test –ssh-identity-file=./private_key –ssh-config=./ssh_config –hosts=ssh://[email protected] ../snaplex_cicd/automated_tests.py py.test version I’m using is 4.6.11 My ssh_config: Host 172.27.184.93 HostName 172.27.184.93 User bwahmed Port 22 StrictHostKeyChecking no UserKnownHostsFile […]

By Wajid Baig
Published
Categorised as centos7, docker, jenkins, pytest, testinfra Tagged , , , ,
1 2 3 12

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