Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel. Use this tag for questions about DevOps practices, processes and tools in Linux environments.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Why aren't the iptables `pkts` and `bytes` count getting updated for Docker Containers, on receiving tcp packets?

I'm currently running NixOS-23.11, without any special configuration for docker, just the default install from nixpkgs. I have the following Dockerfile definition: FROM alpine:latest COPY ./index.html ...
Noel Kwan's user avatar
1 vote
2 answers
103 views

Prometheus not Starting (Exec Format Error)

I am trying to run Prometheus on my Ubuntu Linux VM on a Mac M1 (if those details are necessary). OS: Ubuntu 23.10 Prometheus: 2.51.2 I make the config files, and as I run the following lines, sudo ...
drew's user avatar
  • 11
0 votes
1 answer
383 views

Ansible - 'loop' requires a list and got a list, but doesn't work

Minimal reproducible example: role/defaults/main.yaml: node_sysctl: kernel.shmall: 197951838 kernel.shmmax: 810810728448 kernel.shmmni: 4096 role/tasks/main.yaml: - name: Tune sysctl sysctl: ...
adoring_ellis's user avatar
0 votes
0 answers
94 views

Permission denied when mounting volume with podman in fedora

I use a docker-compose.yml file to boot my containers. My container mount to a external volume which targets a directory inside my user profile (postgres database files). However, after switching from ...
mesx's user avatar
  • 101
-1 votes
1 answer
830 views

unzip | caution: filename not matched [closed]

I'm trying to unzip multiple files which has a prefix in common service1.zip service-2.zip service_3.zip and so on... Now, when I try to unzip all those files at once using the command unzip service*....
AV Reddy's user avatar
0 votes
0 answers
17 views

How to make master node and worker nodes before installing kubernetes on Ubuntu?

I am trying to install kubernetes on my Ubuntu 22.04 os. I found blogs and videos in Youtube but failed and deleted all. I had hard time when making master node and worker nodes because there was no ...
ekfqlc's user avatar
  • 1
0 votes
2 answers
100 views

Using docker as a substitute for VM for testing

I'm new to docker and I want to start using it in the following scenario. For example, I need to implement an Asp.Net Core Web API and deploy it to a linux system. The development is done on a Windows ...
Max's user avatar
  • 101
1 vote
1 answer
75 views

Why Minikube has different kernel version in its pods/containers than host OS?

I am running Minikube on a Linux kernel 6.1. I added a uname -r command in an image to check which kernel version the container "sees". And its 5.10.57. I expected the version to be 6.1 as ...
Joysn's user avatar
  • 131
0 votes
2 answers
1k views

Chown inside docker container is not changing directory owner

I can't change ownership of newly created directory inside of docker container. It is not a volume and chown runs correctly for all my colleagues - the only difference is I'm running docker on linux ...
witpok's user avatar
  • 1
1 vote
1 answer
4k views

Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority

I am facing issue when trying to import k8s cluster in Rancher. here are the logs of when trying to run the commands: Commnad: curl --insecure -sfL https://172.31.91.168/v3/import/...
Abdullah Manzoor's user avatar
0 votes
2 answers
500 views

show running docker containers nicely formatted

Default layout of output from docker ps is somewhat unwieldy ... how to get a better presentation of all locally running docker containers from terminal on linux ? For context below is output from ...
Scott Stensland's user avatar
1 vote
1 answer
2k views

Ansible Unsupported Parameters for using handler

I'm trying to run a ansible task but I keep getting an error. This is the play I want to run: - name: use of handlers hosts: all tasks: - name: install packages yum: name: httpd ...
Sandy's user avatar
  • 11
0 votes
1 answer
116 views

How to make a CI/CD of an ASP.net core app to Linux compute engine instance

I'm using Google cloud, I have a linux VM up and ready for use, I have an ASP.net core web app on Azure devops. I have configured the build pipeline for this webapp, now I want to automate its ...
Damien Doumer's user avatar
0 votes
0 answers
31 views

Implementing the right conditions for a yum command for centos5 in Ansible

I'm currently working with a centos5 host and I have to install some packages with yum. Unfortunately, as far as I know, centos5 doesn't support Ansible's yum module, since it requires python2 ...
Wander's user avatar
  • 9
2 votes
0 answers
22 views

Linux Cloud/Windows On Prem Deployments

I have sort of a unique problem where I have a cloud deployment (linux) that needs to be ported to an on-premise deployment (windows). The constraint is that this is medical software and hospitals ...
Gillespie's user avatar
  • 121
1 vote
1 answer
426 views

Why does stripping executables in Docker add ridiculous layer memory overhead?

On this image, I ran the following command to reduce executable sizes: find -P -O3 /usr/bin/ /usr/local/bin -type f -not -name strip -and -not -name dbus-daemon -execdir strip -v --strip-unneeded '{}' ...
T145's user avatar
  • 170
2 votes
1 answer
1k views

Does docker engine (not Desktop) support Linux containers on Windows 11?

I've installed docker engine according to the following instructions: https://docs.docker.com/engine/install/binaries/#install-server-and-client-binaries-on-windows I'm trying to run Linux containers ...
Craig's user avatar
  • 151
1 vote
2 answers
2k views

Rebooting node at end of Jenkins pipeline

I have a pipeline that runs on a dedicated bare metal node for automated performance benchmarking. Using bare metal is necessary due to the nature of the project. Near the end of the pipeline, the ...
Sagar's user avatar
  • 111
-1 votes
1 answer
378 views

Can't run apt-get update in an Ubuntu 16.04 docker container

Everytime I run apt-get update -y in my Ubuntu 16.04 docker container, I get the following error: Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://archive.ubuntu.com/...
Levent Ozbek's user avatar
2 votes
1 answer
326 views

Docker performance when running on LVM

It seems that when using overlay2 storage driver, docker is much slower when using a LVM compared to without a LVM (ext4 filesystem in both cases, same machine). Questions: Is this intended/expected? ...
MRalwasser's user avatar
0 votes
1 answer
234 views

Terraform wanting to redeploy azure vms for 'no' reason

I got a VM defined in terraform like this: resource "azurerm_linux_virtual_machine" "vm" { name = var.vm-name resource_group_name = var....
dahol's user avatar
  • 111
0 votes
1 answer
543 views

Where is located mysqldump log file on Linux/Ubuntu

I am neither a DB administrator, nor a DevOps but I need to migrate a very large table (~500M rows) from one MySQL schema to another. For doing so, I use mysqldumpbackup tool. Also, since the DB is an ...
Armine's user avatar
  • 71
3 votes
1 answer
3k views

docker-credential-desktop.exe not installed

Moving from Docker Desktop for Windows to Docker Server / CLI for Linux to escape the license fee, I used the standard documentation for Ubuntu to install docker into my WSL2. After frankensteining it ...
Chris's user avatar
  • 151
0 votes
1 answer
28 views

What would be the monthly hosting cost for eSchool Smart System [closed]

I have no idea about DevOps. Sorry in advance if the question is something not relevant. I have to propose a cost of yearly/monthly for a system. The system will have two versions. Web (React & ...
Rashed Rahat's user avatar
0 votes
1 answer
1k views

How can we setup the services in my EC2 instance to startup automatically on boot?

When ever I restart my EC2 instance I have to manually use the command systemctl start <service name > to start the service. Is there any option to automate this thing in the Linux platform?
AV Reddy's user avatar
1 vote
1 answer
39 views

How to ensure data protection on remote server?

We have sensitive data from a customer and need to train a Neural Network for our customers. However we have no severs to train the Neural Networks, so we want to rent GPU servers. There are many ...
Bamberino's user avatar
0 votes
1 answer
56 views

Ansible user_module exit with "rc: -25" if UID is large

Ansible user_module exit with rc: -25 if trying to create user with UID provided from Active Directory (AD) domain controller (DC). main.yml - name: Configure local user for example.com user: ...
U880D's user avatar
  • 397
0 votes
1 answer
2k views

How to assign static IP to Kubernetes cluster?

Is there any way to assign static IP to Kubernetes cluster, in which any user can able to access its application over static IP only. for an example, I have set up a cluster over 192.168.0.131 (master)...
Bhargav Lalaji's user avatar
1 vote
1 answer
492 views

Ansible with OpenSUSE transactional server

When using an OpenSUSE transactional server, transactional-update must be used instead of Zypper. Is there any way of doing this with Ansible?
Matthias's user avatar
1 vote
1 answer
2k views

How to add a string to a line when it doesn't exist?

I'm trying to solve a problem where I want to add a setting 'pci=noaer' to all kernel definitions in /boot/grub/grub.conf, but only if the setting doesn't exist. I've managed to get the basic ...
ahuie's user avatar
  • 13
1 vote
1 answer
3k views

Minikube will not start again after a stop

Running gentoo linux... I am new to kubernetes and learning it on my dev cloud. I am able to start minikube with no issues (other than the second node is missing...not sure why). Then I stop minikube. ...
dman's user avatar
  • 143
1 vote
1 answer
113 views

Team City Server issue after upgrade

Recently we have upgraded TC to the latest version (TeamCity Professional 2021.1.1 (build 92714)). After upgrade builds run fine when a new VCS root is created, but after a push is made to the ...
Auris's user avatar
  • 121
0 votes
1 answer
1k views

Difference between Docker container with Debian vs VM with Debian?

What is the difference between running a Docker container with Debian (eg. https://hub.docker.com/_/debian/) and then running a virtual machine with Debian? And why is it still an advantage if any? I'...
TheStoryCoder's user avatar
2 votes
1 answer
148 views

How to pin public root key when downloading an image with docker pull (Docker Content Trust)?

How can I execute docker pull (with Docker Content Trust enabled) such that it fails if the image doesn't have a valid signature using the private key corresponding to (or subordinate to) the public ...
Michael Altfield's user avatar
2 votes
1 answer
523 views

Ansible - Variable expansion inside hostvars declaration?

I have a hardcoded hostvars line, like so: node1_hostname={{ hostvars['192.168.0.162']['node1_hostname'] }} I have a set_fact variable from a previous play that I'd like to expand in the host section ...
synth45's user avatar
  • 71
1 vote
1 answer
678 views

Failed to install kubernetes on centos

Following the official documentation, I have an error when trying to install kubernetes cluster yum package. I am on Centos 7 using yum. So I run this commands: cat <<EOF | sudo tee /etc/yum....
french_dev's user avatar
6 votes
1 answer
6k views

Ansible: register variable with loop

What’s the best way to use registered variable ‘audit_tools’ to check if all items are own by root ? Do I need to use Jinja2 filter or something ? Thanks - name: Verify audit tools are own by root ...
sudoi's user avatar
  • 61
0 votes
1 answer
1k views

Ansible No such file or directory error message for any executable in Amazon Linux AMI

I'm trying to run this command in a Amazon Linux AMI instance - name: Run docker shell: systemctl enable docker && systemctl start docker And receiving this error message "stderr&...
Joao  Vitorino's user avatar
0 votes
1 answer
755 views

any way to limit "docker logs" output by default?

Context* I forgot to pass the "--tail" options to the "docker logs" command when inspecting a running container. The affected container dumps tens of millions of logs. The command ...
earizon's user avatar
  • 138
3 votes
1 answer
245 views

Is running linux container on windows aws instance possible?

what I'm trying to achieve is running a Linux(ubuntu LST) container inside a windows server 2019 OS. The problem is that the windows OS runs as an AWS instance. There have been problem for me trying ...
dor00012's user avatar
  • 131
0 votes
2 answers
4k views

Can I upgrade a docker image/container from buntu 18.04 to ubuntu 20.04?

I have a host ubuntu 20.04 running my software on docker with a container derivated from ubuntu 18.04. I would like to use ubuntu 20.04 for several reasons (like the better software on 20.04). If I ...
Andrea Giaime Bodei's user avatar
2 votes
0 answers
1k views

Ansible/AWS dynamic inventory -- How to create groups based on tags?

I am trying to create custom groups, based on tags. I am using this doc as a reference: https://docs.ansible.com/ansible/latest/plugins/inventory.html#inventory-plugins As a baseline, in my aws_ec2....
synth45's user avatar
  • 71
2 votes
1 answer
641 views

How do I convert "\n" to linebreaks in my docker logs?

I am using docker-compose up to start a web server in linux but am finding that the stdout is printing "\n" characters instead of creating new lines. This makes stack traces difficult to ...
quant's user avatar
  • 155
0 votes
2 answers
3k views

How to Save and Restore the Iptables rule and configuration from file?

I want to save the current iptables configuration to a file and restore it from a file. I have a lot of rules and modifying the rules really hard for me. So, how can i do that?!
Amintabar's user avatar
  • 171
3 votes
1 answer
8k views

GitHub Actions Runner execute commands with sudo GitHub Actions

I have a GitHub action set on self hosted Ubuntu VPS on Linode. I ran sudo ./svc.sh install and then ./svc.sh start. The runner is up and working but I have a command in my yaml file that needs to run ...
Takasur's user avatar
  • 161
3 votes
0 answers
1k views

Remote connection from Docker container by FTP

I built my docker image and run it: docker run --rm -P -d test:latest Then I entered the command and opened connection: ftp open XXX I successfully connected and entered user data. After that I ...
Leonid's user avatar
  • 91
3 votes
1 answer
158 views

Porting a docker container to a different Linux host OS

I'm new to Docker. I have looked at many tutorials, however, this is still not clear to me : For example, If I create a docker image on a system which is using Ubuntu as the host OS. Can I then later ...
Engineer999's user avatar
0 votes
1 answer
66 views

What are the daily job duties of a devops? [duplicate]

I have been working for linux management over 10 years. In the last 5 years, I have added a lot of coding experience through software development like php, ruby, go, etc. I wanna be a devops, but I ...
brian's user avatar
  • 1
1 vote
2 answers
1k views

How to sync two directories on same host using Ansible?

I am using the below playbook for mounting partitions on another EBS volumes while provisioning instance on AWS --- - name: Mounting necessary partitions hosts: localhost become: ...
Santosh Garole's user avatar
0 votes
1 answer
7k views

How comes a GitLab CI/CD job cant' find its artifacts?

In the Open Source ventilator project, we aim to provide those who focus on testing with a ready-to-go flash file for the Arduino controller board. While the binaries seem to be there, for some ...
Ta Mu's user avatar
  • 6,782