Questions tagged [devops]
This tag is for programming questions about DevOps ("development" and "operations"), which is a software development method that stresses communication, collaboration, integration, automation, and measurement of cooperation between software developers and other IT professionals. Non-programming related questions should be asked on the DevOps Stack Exchange site.
devops
8,199
questions
570
votes
23
answers
907k
views
Docker container will automatically stop after "docker run -d"
According to tutorial I read so far, use "docker run -d" will start a container from image, and the container will run in background. This is how it looks like, we can see we already have container id....
322
votes
15
answers
459k
views
How to keep Docker container running after starting services?
I've seen a bunch of tutorials that seem do the same thing I'm trying to do, but for some reason my Docker containers exit. Basically, I'm setting up a web-server and a few daemons inside a Docker ...
272
votes
37
answers
564k
views
My docker container has no internet
I had it working allright but now it stopped. I tried the following commands with no avail:
docker run -dns 8.8.8.8 base ping google.com
docker run base ping google.com
sysctl -w net.ipv4....
117
votes
13
answers
263k
views
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
I am trying to download java using yum on centOs which I specified in a Dockerfile.
After pulling centOs image the run crashed and threw this error!?
also to mention that my server instance is AWS EC2!...
89
votes
7
answers
107k
views
Docker-compose, conditional statements? (e.g. add volume only if condition)
I want to add a volume to my service, but only if the final user gave a folder for it. Otherwise, no volume should be mounted, for the already-prepared image has valid data in a default folder.
That ...
86
votes
12
answers
228k
views
How do I change timezone in a docker container?
I am running docker container for my development stack which I pulled from docker-hub, the image is created for a different timezone than where my application is supposed to be deployed.
How do I ...
82
votes
3
answers
206k
views
How can I change permission of mounted volumes in docker-compose.yml from the docker-compose.yml?
version: '2'
services:
web:
build:
context: ./
dockerfile: deploy/web.docker
volumes:
- ./:/var/www
ports:
- "8080:80&...
81
votes
5
answers
109k
views
Cannot kill container: <container-id>: tried to kill container, but did not receive an exit event
I cannot stop, remove or kill my docker container. Commands given below with their respective error messages:
1. docker stop <container-id>
2. docker kill <container-id>
3. docker rm <...
70
votes
6
answers
173k
views
Using docker-compose to set containers timezones
I have a docker-compose file running a few Dockerfiles to create my containers. I don't want to edit my Dockerfiles to set timezones because they could change at any time by members of my team and I ...
69
votes
4
answers
81k
views
ERROR: Service "xxx" uses an undefined network "xxx"
It keeps saying to me that the network is undefined.
ERROR: Service frontend-network uses an undefined network
frontend-network
However, I see that there is already such a network with
"docker ...
48
votes
7
answers
33k
views
Is it a good idea to make Ansible and Rundeck work together, or using either one is enough?
Recently I'm looking at Ansible and want to use it in projects. And also there's another tool Rundeck can be used to do all kinds of Operations works. I have experience with neither tool and this is ...
39
votes
1
answer
60k
views
Use process.env in Angular 5 environment
I try to build an Angular 5 application with the standard ng build --prod command, and I want to set the basic API-Url in the environment.prod.ts to a value dependent on my process.env variables.
...
38
votes
2
answers
33k
views
What is gitlab runner
I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab.
The project is a pre-existing PHP project.
I don't want to clean it up just yet,...
37
votes
5
answers
45k
views
How to fix VM issue with minikube start ?
I am a beginner to Kubernetes and starting off with this tutorial. I installed VM and expected to be able to start a cluster by using the command:
minikube start
But I get the error:
Starting ...
37
votes
3
answers
61k
views
What is the correct way to setup multiple logically organized sub folders in a terraform repo?
Currently I am working on a infrastructure in azure that comprises of the following:
resource group
application gateway
app service
etc
everything I have is in one single main.tf file which I know ...
35
votes
19
answers
279k
views
Docker daemon is not running
Newbie in this area. I have installed the new version of Docker in my windows PC. I am using windows 10 Pro. I have tried the very basic docker command but it is not working. I have also run the ...
34
votes
4
answers
14k
views
Remove service on docker-compose through overriding
I want to remove a container defined in docker-compose.yml file when we run in composition/override with another file docker-compose.prod.yml, by example:
# docker-compose.yml
version: 2
services:
...
33
votes
3
answers
95k
views
How to pass Variables to Terraform modules via CLI or tfvars file?
(Please note: after receiving initial answers, this issue seems to not be just an issue with passing the variables, but with modularizing my configurations, note at the bottom where I hardcode the ...
33
votes
1
answer
31k
views
docker-compose: how to see file-changes instantly (when developing)
I am new to docker, so this may seem very basic to you, anyway - its freaking me out at the moment.
I decided to develop a new web-project ontop of containers, of course i thought about docker. After ...
33
votes
2
answers
17k
views
What are the differences between GitHub Actions and other CI tools like Jenkins?
GitHub announced an upcoming feature, GitHub Actions.
I'm positive on the benefits of CI tools like Jenkins for automatic building or testing, which GitHub Actions is aimed to be used for in the ...
33
votes
6
answers
54k
views
Gitlab CI/CD Pass artifacts/variables between pipelines
tl;dr
How do I pass data, e.g. the $BUILD_VERSION variable, between jobs in different pipelines in Gitlab CI?
So (in my case) this:
Pipeline 1 on push ect. Pipeline 2 after merge
`...
32
votes
7
answers
72k
views
How to give a .tf file as input in Terraform Apply command?
I'm a beginner in Terraform.
I have a directory which contains 2 .tf files.
Now I want to run Terraform Apply on a selected .tf file & neglect the other one.
Can I do that? If yes, how? If no, ...
32
votes
3
answers
49k
views
Using Vagrant to set up a VM with KVM/qemu without VirtualBox
I'm getting started Vagrant and want to use it with KVM/qemu (and the Virtual Machine Manager GUI), instead of installing VirtualBox. So I first installed Vagrant:
$ vagrant --version
Vagrant 1.9.1
$...
31
votes
2
answers
17k
views
Sharing resources between Terraform workspaces
I have an infrastructure I'm deploying using Terraform in AWS. This infrastructure can be deployed to different environments, for which I'm using workspaces.
Most of the components in the deployment ...
30
votes
4
answers
24k
views
Helm upgrade doesn't pull new container
I Build a simple NodeJS API, pushed the Docker Image to a repo and deployed it to my k8s with Helm install (works perfectly fine).
The pullPolicy is Always.
Now I want to update the source code and ...
30
votes
2
answers
28k
views
Keycloak Realm VS Keycloak Client
I am recently working on Keycloak 6.0.1 for SSO for authentication for multiple applications in organisation. I am confused in difference between clients and realm.
If I have 5 different ...
29
votes
5
answers
29k
views
Why does kubectl cp command terminates with exit code 126?
I am trying to copy files from the pod to local using following command:
kubectl cp /namespace/pod_name:/path/in/pod /path/in/local
But the command terminates with exit code 126 and copy doesn't take ...
29
votes
4
answers
57k
views
Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" even though it's enabled
Running docker toolbox ( v19.03.1) from Windows 10 Home edition yields the following error message:
Running pre-create checks...
Error with pre-create check: "This computer doesn't have VT-X/AMD-v ...
29
votes
4
answers
31k
views
DOWNLOAD_SOURCE Failed AWS CodeBuild
Whenever I start AWS CodeBuild I get this type of error every time. please help.
DOWNLOAD_SOURCE Failed 3 mins, 2 secs
Get
https://github.com/themithunbiswas/test-...
29
votes
4
answers
49k
views
How to pass GitLab CI file variable to Dockerfile and docker container?
GitLab CI allows adding custom variables to a project.
It allows to use a secret variable of type file where I specify a Key that is the variable name and Value that is the content of a file(e.g. ...
29
votes
3
answers
4k
views
nginx set remaining count for limit_req in X-RateLimit-Remaining header
I'm actually a little surprised that I couldn't find anything after a couple hours of googling, but the problem is as follows:
I want nginx to serve as my throttle for my API.
My config file ...
28
votes
3
answers
21k
views
How Logstash is different than Kafka
How Log stash is different than Kafka?
and if both are same which is better? and How?
I found both are the pipelines where one can push the data for further processing.
28
votes
2
answers
13k
views
What is the difference between Label and Selector in kubernetes?
After reading the official documentation on kubernetes.io, I am still wondering what exactly is the difference between label and selector in Kubernetes?
Editing: For example consider the following ...
28
votes
5
answers
36k
views
Should Dockerfile execute "npm install" and "npm run build" or should it only copy those files over?
I'm a little new to Docker and trying to wrap my head around some of the concepts.
In a lot of tutorials and articles (actually, almost all of them), this is a typical Dockerfile for a create-react-...
26
votes
2
answers
104k
views
how we can see all running services Linux machine?
I have a Linux [ Ubuntu Version 16.04 or Upper version ] machine and I want to see how many services are running right now and how many services are installed using 1 command or the minimum commands ...
26
votes
3
answers
23k
views
Error deleting Target Group: ResourceInUse when changing target ports in AWS through Terraform
I am currently working through the beta book "Terraform Up & Running, 2nd Edition". In chapter 2, I created an auto scaling group and a load balancer in AWS.
Now I made my backend server HTTP ...
26
votes
3
answers
39k
views
Set the pipeline name and description from Jenkinsfile
I am trying to do a poc of jenkins pipeline as code. I am using the Github organization folder plugin to scan Github orgs and create jobs per branch. Is there a way to explicitly define the names for ...
26
votes
6
answers
6k
views
Azure Web App (ASP.NET MVC) becomes cold every ten minutes and takes +10-20s to load
I have a very weird issue with an Azure Web App, and I'm getting quite frustrated with it.
We experience our app is very fast and responsive when using it, however, if we don't use it for roughly ten ...
25
votes
4
answers
12k
views
Azure DevOps Project pipeline not able to access NuGet package from Artifact Feed in different Project
Updated 20-Feb-2020
Summary
Azure DevOps pipeline build not able to find NuGet package from our private feed under Artifacts.
Our Azure DevOps environment
In Azure, we have our company "space": ...
25
votes
3
answers
34k
views
How do I run a webpack build from a docker container?
The app I'm making is written in ES6 and other goodies is transpiled by webpack inside a Docker container. At the moment everything works from creating the inner directory, installing dependencies, ...
23
votes
3
answers
19k
views
Whats the difference between a build pipeline and a release pipeline in Azure DevOps?
I have set up several multi-staged build pipelines in Azure DevOps by using .yaml files. I've read about the "Release Pipelines" available, and I'm wondering what the benefits of those are?
...
23
votes
3
answers
11k
views
Creating different eslint rules for local development
Here's a motivating example: I am developing some code and want to figure out what's going wrong, so I have
function foo() {
console.log("Look its 2016 and I'm still printf debugging");
}
Except....
23
votes
3
answers
15k
views
docker swarm mode multiple services same port
Suppose you have two services on your topology
API
Web Interface
Both suppose to be running on port 80.
On docker swarm when you create a service if you wanna to access it outside the cluster you ...
22
votes
5
answers
57k
views
Gitlab integration with SonarQube
I am pretty new to Development community and specifically to DevOps practices , as a part of project we are trying to integrate SonarQube with Gitlab , did some R& D on SonarQube and Git CI ( ...
22
votes
6
answers
66k
views
Why Jenkins says "Server rejected the 1 private key(s)" while launching the agent?
I am successfully able to connect to remote machine using SSH but when I am launching the agent from Jenkins it throws the following error:
ERROR: Server rejected the 1 private key(s) for user1 (...
22
votes
4
answers
37k
views
invalid from flag value build: pull access denied for build, repository does not exist or may require 'docker login'
I am trying to build a simple docker console project at azure DevOps pipeline, but i am unable to build the project.
When i try to copy the code i get this error:
invalid from flag value build: ...
22
votes
3
answers
13k
views
How can I create a Docker image to run both Python and R?
I want to containerise a pipeline of code that was predominantly developed in Python but has a dependency on a model that was trained in R. There are some additional dependencies on the requirements ...
21
votes
2
answers
32k
views
Azure DevOps YAML Pipeline Error: While parsing a block mapping did not find expected key
I just created a pipeline using the YAML file and I am always getting the error "/_Azure-Pipelines/templates/webpart.yml: (Line: 41, Col: 27, Idx: 1058) - (Line: 41, Col: 60, Idx: 1091): While ...
21
votes
3
answers
31k
views
CloudFormation Resource Creation if not exist
I want to create Route53 HostedZone with CloudFormation so I want to check some information in Route53 about HostedZone is exist.
In logic of my case I need check if resource is exist, ignore the ...
21
votes
4
answers
14k
views
Remove Docker images from Nexus Repository Manager OSS 3.0.1-01
I've been using Nexus to publish my Docker images for a couple of months and I really like the features it adds to a classic Docker Registry.
Recently, the number of images we're storing caused disk ...