Most Popular
1500 questions
52
votes
16 answers
Docker pull: TLS handshake timeout
I get this consistenly (Ubuntu 16.04 LTS):
$ docker pull nginx
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout
However curl TLS works fine (apart from the auth error):
$…
Willem
- 3,042
52
votes
3 answers
Is there a way to check that a dictionary key is not defined in ansible task?
So in my code I have a task:
- name: cool task
shell: 'touch iamnotcool.txt'
when: me.cool is not defined
and my vars looks like:
---
me:
stumped: yes
So when I run the task it comes back with the following error:
{"failed": true, "msg":…
Luis F Hernandez
- 793
52
votes
5 answers
How to install Docker on AWS EC2 instance with AMI (CE/EE Update)
What is the current way of installing Docker on an AWS EC2 instance running the AMI?
There has been an announcement of Docker Enterprise Edition and now I want to know if anything has changed.
Until now, I have been using yum install docker and do…
mxscho
- 742
52
votes
2 answers
What does the at-sign "@" mean in nginx location blocks?
I've encountered a few questions and answers on here that use this syntax:
location @default {
# ...
}
location /somewhere {
try_files $uri @default;
}
I've searched high and low on the Googles and I can't seem to find any documentation of…
ccnokes
- 769
- 1
- 6
- 9
52
votes
11 answers
Most efficient way to batch delete S3 Files
I'd like to be able to batch delete thousands or tens of thousands of files at a time on S3. Each file would be anywhere from 1MB to 50MB. Naturally, I don't want the user (or my server) to be waiting while the files are in the process of being…
SudoKill
- 623
52
votes
3 answers
Always trigger handler execution in Ansible
I'm using Ansible to provision my development server.
I want it to always start some services for me. I have handlers for this purpose but what is the best way to trigger handler execution without condition, e.g. make it always work?
Something like…
Slava Fomin II
- 1,763
52
votes
10 answers
Windows TCP Window Scaling Hitting plateau too early
Scenario: We have a number of Windows clients regularly uploading large files (FTP/SVN/HTTP PUT/SCP) to Linux servers that are ~100-160ms away. We have 1Gbit/s synchronous bandwidth at the office and the servers are either AWS instances or…
SmallClanger
- 9,312
52
votes
3 answers
Is there a maximum subdomain depth?
Is there a maximum allowed subdomain depth supported by webservers or browsers?
For example, could a domain like foo.bar.baz.monkey.pirate.google.com cause problems?
braveterry
- 927
- 2
- 8
- 15
52
votes
5 answers
How do I schedule a reboot on Linux?
I'd like to be able to schedule a server reboot at a specific time, but not regularly. How can I do this without futzing with adding and removing cron entries?
jldugger
- 14,602
52
votes
2 answers
How to verify an imported GPG key
I'm new to this PGP thing. Here are my questions:
Verification
When I do this, I'm given the message "This key is not certified with a trusted signature". Is there anyway to make it trusted and better yet what's the proper way for doing…
user192702
- 961
52
votes
3 answers
SElinux: allow httpd to connect to a specific port
My system is running CentOS 6.4 with apache2.2.15. SElinux is enforcing and I'm trying to connect to a local instance of redis through my python/wsgi app. I get Error 13, Permission denied. I could fix this via the command:
setsebool -P…
savagecitizen
- 521
52
votes
1 answer
Fibre channel long distance woes
I need a fresh pair of eyes.
We're using a 15km fibre optic line across which fibrechannel and 10GbE is multiplexed (passive optical CWDM). For FC we have long distance lasers suitable up to 40km (Skylane SFCxx0404F0D). The multiplexer is limited by…
Marki
- 2,867
- 4
- 30
- 48
52
votes
1 answer
nginx server directive is not allowed here
I know there are dupes of this out there, but I can't seem to solve this in my situation.
I'm following an article on setting up nginx as reverse proxy with apache.
And I get this error:
nginx: [emerg] "server" directive is not allowed here in
…
gideon
- 1,145
52
votes
14 answers
Preventing brute force attacks against ssh?
What tool or technique do you use to prevent brute force attacks against your ssh port. I noticed in my Security logs, that I have millions of attempts to login as various users through ssh.
This is on a FreeBSD box, but I imagine it would be…
grieve
- 1,557
52
votes
4 answers
MySQL warning "IP address could not be resolved"
I've got MySQL Master/Slave setup and I've noticed the following warnings in the mysql log files on both servers:
[Warning] IP address 'xxx.xxx.xxx.xxx' could not be resolved: Name or service not known
I've checked and the DNS lookups works fine…
HTF
- 3,278