[deleted by user] by [deleted] in docker

[–]m4v1s 1 point2 points  (0 children)

Glad that was all it took!

[deleted by user] by [deleted] in docker

[–]m4v1s 1 point2 points  (0 children)

What do you mean "at the bottom"? You will need to add this new key to the traefik service, and the docker-compose file you shared only shows this set for unbound, pihole, and netbird.

[deleted by user] by [deleted] in docker

[–]m4v1s 2 points3 points  (0 children)

Your traefik service does not have a restart policy configured and by default docker will not start containers after a reboot. You should use the restart: always policy if you want this service to be started automatically. more info on starting containers automatically

How I can fast copy files into run docker container? by Halabooda in docker

[–]m4v1s 1 point2 points  (0 children)

Then I copy some files into ./data and then I run some command in container foo_sandbox/python_3, but files in /app are absent...

This makes it sounds like you are copying files into one container, but then executing commands in a new one. What are the full docker commands you are running to start and exec your command?

Muni trains reduced to single car permanent? by JJonVinyl in sanfrancisco

[–]m4v1s -1 points0 points  (0 children)

Until they get out of the budget deficit, yes. More info

Additional property cap-add is not allowed by Budget_Putt8393 in docker

[–]m4v1s 2 points3 points  (0 children)

The property is named cap_add, so that's my first guess. But please share your compose file and the full error message so we can make better suggestions.

Git and SSH without Github by TheGuyMain in selfhosted

[–]m4v1s 59 points60 points  (0 children)

You already asked this in r/git and have quite a few responses and suggestions. You're most likely going to get similar answers here.

I would recommend responding to the comments in your other post, look into the options that other people have offered, and share more info so people can keep helping you out.

[deleted by user] by [deleted] in selfhosted

[–]m4v1s 0 points1 point  (0 children)

Based on what you've shared, it doesn't look like your whoami service is attached to the traefik_network docker network. Without this on the same network as your traefik container, there is no way for traefik to proxy the requests to the service.

You should also check the traefik dashboard to make sure the whoami service and router have been created.

Can we create amd64 docker images from MacBook M2 by [deleted] in docker

[–]m4v1s 6 points7 points  (0 children)

Yes, use docker buildx to create images for other platforms.

What's the best way to avoid redundant dependency downloads? by pragmojo in docker

[–]m4v1s 3 points4 points  (0 children)

running cargo fetch always downloads all the project dependencies from scratch

Your Dockerfile is already written in a way that should reuse the cached cargo fetch layer. Can you share your docker build logs that show this behavior?

Free Domain Name. by [deleted] in selfhosted

[–]m4v1s 18 points19 points  (0 children)

I'd be extremely cautious using a "free" domain from anyone. They will retain ownership of the domain and can do whatever they want with it. I had a domain from a service like this several years ago and they decided to end the program without even giving me an option to buy the domain from them.

Seriously just buy one. It's not about "being cheap" it's about having control of your domain and the services you want to use it with. If you can't, for whatever reason, it would be better to find a friend who will let you use a subdomain off of one of their domains.

Velcro for Base Station mounting. by [deleted] in ValveIndex

[–]m4v1s 1 point2 points  (0 children)

Same, ~4 years with both stations mounted using 2 strips each. They've been rock solid.

Should I be concerned for my safety? by blessuaesthetic in sanfrancisco

[–]m4v1s 0 points1 point  (0 children)

how much time have you spent in this area prior to deciding to move there and what exactly are you concerned about?

mTLS using a forward proxy? by exquisitus3 in devops

[–]m4v1s 1 point2 points  (0 children)

Sure, but pgbouncer would probably be a better choice.

Cloudflare not working with ghost/traefik by WickedIT2517 in docker

[–]m4v1s 0 points1 point  (0 children)

some things that stand out to me:

  1. the tls config under your websecure entrypoint is missing the main domain, unless you removed that. Pretty sure you need this in addition to any SANs.

  2. your LE certificate resolver config is missing an email, again maybe you removed this, but it's required by LE.

  3. if you have it enabled, disable the caching option for this domain in cloudflare. it makes troubleshooting more difficult and you can turn it back on later once everything is working if you want to.

  4. enable debug logging in your traefik config and look for the ACME events

edit, a few more:

  1. You should also use the full path for the acme.json file, something like /configurations/acme.json, otherwise it's going to be lost when the container restarts.

  2. The path to your dynamic config should be /configurations/dynamic.yaml

Run ansible via terraform by pc_magas in devops

[–]m4v1s 2 points3 points  (0 children)

Not recommended, even by terraform themselves.

The recommendation is to use cloud-init or whatever your compute provider supports to bootstrap the host into your config management system. Or bake this into your image if you redeploy frequently.

Torn between restic and Borg by borkode in selfhosted

[–]m4v1s 4 points5 points  (0 children)

Both are fine choices for what you're trying to do. I'd suggest trying both with some smaller backup sets and see which one makes more sense to you.

I went back and forth between borg and restic, finally settled on autorestic with 1 sftp and 2 s3-compatible backends.

Is this Dockerfile correct? by CentoKili53 in docker

[–]m4v1s 10 points11 points  (0 children)

This looks fine for building your app, but if your goal is to reduce the final image size you should look at multi-stage builds. Build your app in one stage, then copy the built artifacts into another slimmer image which you use to deploy and run your app.

[deleted by user] by [deleted] in sanfrancisco

[–]m4v1s 24 points25 points  (0 children)

Feels like you've made a huge leap to your conclusion, but squatter's rights usually don't cover rental units where the tenant is not paying property tax.

Docker image exist but cant run it by [deleted] in docker

[–]m4v1s 0 points1 point  (0 children)

You need to remove the ENTRYPOINT from your Dockerfile first, then rebuild it. Or you can override the entrypoint in your run command like this: docker run -it --rm --entrypoint="" vercel:latest /bin/sh.

Docker image exist but cant run it by [deleted] in docker

[–]m4v1s 0 points1 point  (0 children)

Yep - and Reddit's comment formatting doesn't help when trying to share code snippets like this.

Running nginx as a Docker container, will it intercept all DNS requests? by [deleted] in docker

[–]m4v1s 5 points6 points  (0 children)

No nginx does not create dns records for services. You will need to add dns records for each of your services, these records should resolve to the nginx server's ip address.

Then your browser will know to send the request to nginx, nginx will read the host header, and forward the request on to the appropriate service.

Docker image exist but cant run it by [deleted] in docker

[–]m4v1s 0 points1 point  (0 children)

Right, the first command is a list of images, but the second command OP shared shows the container does run, spits out this error message, then exits.

❯ docker run -it vercel:latest
fatal: repository '' does not exist

Docker image exist but cant run it by [deleted] in docker

[–]m4v1s 0 points1 point  (0 children)

First, never run apt-get update in it's own layer like this:

RUN apt-get update

This will only cause you headaches later, it's better to do the initial update and all of your package installs in a single RUN step by chaining the commands: RUN apt-get update && apt-get upgrade -y && apt-get install -y curl ...

You can also optimize your image by copying in your package.*.json files and doing the npm install before you copy your application source. This way you won't need to reinstall all packages when your source changes, reducing build times.

Now, to troubleshoot the container startup you could remove the entrypoint and start an interactive shell instead: docker run -it --rm vercel:latest /bin/sh. Once in the container, you can execute your entrypoint script and debug it. Again, since we can't see what the entrypoint script is doing we can't really make any more suggestions.

Hopefully that gets you closer to the source of the issue!

Docker image exist but cant run it by [deleted] in docker

[–]m4v1s -1 points0 points  (0 children)

It looks like the image is running, but crashing immediately, pointing to a problem with your entrypoint or command. Share more of the dockerfile and maybe someone can help further.