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
10 views

Accessing Pelias Geocoder docker compose from other machine

Following this tutorial, I have a docker image running in a Linux machine, with the Pelias Geocoder service: https://github.com/pelias/docker I can access the service from the localhost, in a browser, ...
user avatar
1 vote
1 answer
36 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 ...
user avatar
  • 111
0 votes
0 answers
106 views

nginx in Docker - returns "server" directive is not allowed here

I have dockerized an Angular application with the following Dockerfile and nginx.conf. The container works fine in Docker desktop. When deploying in Kubernetes cluster, the container fails to start ...
user avatar
  • 101
0 votes
0 answers
13 views

Communication failling between Kubernetes' node

I'm learning Kubernetes but I have some issues to establish a communication between 2 pods from 2 different nodes. I've initiliazed my cluster (1 master and 2 workers) thanks to kubeadm, I'm using ...
user avatar
  • 1
0 votes
0 answers
24 views

What is LDAP and how it is configured in Docker containers?

Background- I am new to working with linux and docker, and I have been told to configure LDAP in a "oraclelinux-8 arm64v8" Docker image. (so that kerberos lookup can be done) What I have ...
user avatar
0 votes
0 answers
23 views

WSL2 is broken after minikube was installed

After I finished the completed guide of minikube installation on my WSL2. I'm getting the following error message when I try to open a new terminal /usr/sbin/enter-systemd-namespace: line 10: /usr/...
user avatar
0 votes
0 answers
33 views

How do we use napalm library with ttp module at the same time?

How can i parse the data after getting it with napalm ? First I was using "get_network_driver". I want to use TTP pars method under interface. Library from napalm import get_network_driver ...
user avatar
0 votes
0 answers
21 views

How to securely connect Azure Kubernetes to on premise services?

I have a couple of linux servers in different physical locations (countries) and all these servers host the same application. I want to be able to safely reach these servers from my kubernetes ...
user avatar
-1 votes
1 answer
76 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/...
user avatar
  • 107
0 votes
0 answers
27 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? ...
user avatar
0 votes
1 answer
25 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....
user avatar
  • 1
0 votes
1 answer
42 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 ...
user avatar
  • 61
0 votes
0 answers
241 views

Resolving permissions for Gitlab CI/CD for files written from Docker containers

My Gitlab CI/CD pipelines works on the first build with a clean home/gitlab-runner/builds directory, but on subsequent builds I get "rm: cannot remove '/home/gitlab-runner/builds/somefile': ...
user avatar
1 vote
1 answer
340 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 ...
user avatar
  • 121
1 vote
0 answers
82 views

Packer Ubuntu 21.10 initramfs unpacking failed write error

I'm trying to create a VMI using the official Ubuntu 21.10 iso using Packer and export it to Vagrant box and, if possible, to a simple ISO that I can install manually on another computer. I'm getting ...
user avatar
  • 123
0 votes
1 answer
24 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 & ...
user avatar
0 votes
0 answers
35 views

Ansible playbook - defining var based on condition

I want to create a var based on condition so I created the below : tasks: - name: set IN_PROGRESS backup folder set_fact: v_target_backup_folder_in_progress: >- {% if node_type == &...
user avatar
0 votes
1 answer
34 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?
user avatar
0 votes
0 answers
99 views

How to install Microk8s on Oracle Linux Server 7.9

I want to install Microk8s on an Oracle Linux Server 7.9 virtual machine, but I get an error using snap: $ sudo snap install microk8s --classic 2021-11-02T18:57:19Z INFO Waiting for restart... error: ...
user avatar
  • 101
1 vote
1 answer
34 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 ...
user avatar
1 vote
0 answers
23 views

Using Azure Active Directory as authentication backend for ssh on linux box

I used to use on-site active directory (providing pubkey though a custom AD field), but in my new company they are using Azure AD. I don't think my old way would work, did anyone already did this ? If ...
user avatar
  • 332
0 votes
1 answer
21 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: ...
user avatar
  • 142
0 votes
1 answer
207 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)...
user avatar
0 votes
0 answers
9 views

Renewing and pushing certificates on Linux virtual machines and Openshift containers

We use Venafi application which renews the certificate on the Linux virtual machines(VMs), then we export the certificate's public key, send it to other teams who update their records. My work place(...
user avatar
1 vote
1 answer
190 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?
user avatar
1 vote
1 answer
339 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 ...
user avatar
  • 13
1 vote
1 answer
1k 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. ...
user avatar
  • 143
0 votes
0 answers
19 views

Creating sub-directories in a mapped drive?

I created a Samba (v4.x) share drive on a Linux box that's accessible to Windows nodes. I was able to access the Samba share (via username/pw creds) on my Windows box, and I mapped a Windows driver ...
user avatar
  • 285
1 vote
1 answer
39 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 ...
user avatar
  • 121
0 votes
1 answer
262 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'...
user avatar
1 vote
1 answer
59 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 ...
user avatar
2 votes
1 answer
148 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 ...
user avatar
  • 51
1 vote
1 answer
323 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....
user avatar
5 votes
1 answer
2k 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 ...
user avatar
  • 51
0 votes
1 answer
424 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&...
user avatar
0 votes
1 answer
222 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 ...
user avatar
  • 138
3 votes
0 answers
110 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 ...
user avatar
  • 131
0 votes
2 answers
2k 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 ...
user avatar
1 vote
0 answers
693 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....
user avatar
  • 51
2 votes
1 answer
96 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 ...
user avatar
  • 145
0 votes
2 answers
608 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?!
user avatar
  • 171
3 votes
1 answer
4k 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 ...
user avatar
  • 151
3 votes
0 answers
713 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 ...
user avatar
  • 91
3 votes
1 answer
103 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 ...
user avatar
0 votes
1 answer
58 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 ...
user avatar
  • 1
1 vote
2 answers
605 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: ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
1 vote
1 answer
22 views

How do I package a jar and a Linux VM to run in Windows? [closed]

I'm new to DevOps so please forgive my ignorance. I have inherited a Win10 Java app that is currently run by pressing play in NetBeans. It makes API calls to a server running in a Linux VM. What I'd ...
user avatar
  • 113
1 vote
1 answer
2k views

What is the difference between a jail environment in linux and docker container?

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
user avatar
2 votes
1 answer
76 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
user avatar