Docker: COPY can’t find files in local directory where the `docker build` runs

in a directory with prefix /home/gitlab-runner/builds/, there is a example.jar file and a Dockerfile, in the Dockerfile, there are statements as below: COPY example.jar /app I run docker build -t image_name ./ then I get the following error: COPY failed: stat /var/lib/docker/tmp/docker-builder457658077/example.jar: no such file or directory why can’t COPY find the example.jar from within…

Determine what settings are associated with a phantom/orphan GPO object

I am attempting to troubleshoot an issue that is suspected to be coming from a phantom GPO object. I found the Get-GPOMappings (https://gallery.technet.microsoft.com/Get-GPOMappings-Generate-09fe167c) script on technet and it identified a list of phantom GPOs. I am able to use GET-GPO and see DisplayName, owner, etc detail data. I am unsure as to how to view…

How to achieve SSH AllowAccess different users different subnets

I would like to know how could I do this better: SSH Allow Access for four users (admin, root, user, subadmin) three nets (192.168.1.*, 192.168.2.*, 192.168.3.*) In ssh_configd I had to do something like this: user@192.168.178.* user@192.168.208.* user@192,168.198.* admin@192.168.178.* admin@192.168.208.* adminb@192,168.198.* etc. Is there a better way? Something like: AllowUsers (user|admin|root|subadmin)@192.168.(1|2|3).* ??? (Due to restricted…

Certbot LetsEncrypt SSL certificate – use multiple configurators for one SSL certificate

I want to create one SSL certificate for three domains that should be handled by the same nginx webserver. example.com cdn.example.com example.external.com The first is our main domain name, the second is the CDN. They are both on Amazon Route 53, but the CDN forwards to AWS cloudfront. I can create a LetsEncrypt SSL certificate…

How do I import an ascii-armored private key back into gpg?

I have exported a private key from gpg using gpg –armor –export-secret-keys 33CB58F45B45F676 This gives me a file like —–BEGIN PGP PRIVATE KEY BLOCK—– nQPGBF3wKSABCAC5ahaMFUVO2+FKDzkEYjSbw0HyiFOPfRIyM+wdbraUCc8Q8guv … If I want to import this file back into gpg, what command should I use? I have tried gpg –import < private.pem but it says gpg: no valid OpenPGP…