Heya!
So i’ve been trying to get tailscale working on google cloud run. I’ve been following this guide: Tailscale on Google Cloud Run · Tailscale
I made a change to the third stage in this section: Tailscale on Google Cloud Run · Tailscale, as the alpine image was causing us issues (as well as some other stuff)
Instead of
FROM alpine:latest
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
# Copy binary to production image
COPY --from=builder /app/start.sh /app/start.sh
COPY --from=tailscale /app/tailscaled /app/tailscaled
COPY --from=tailscale /app/tailscale /app/tailscale
RUN mkdir -p /var/run/tailscale /var/cache/tailscale /var/lib/tailscale
I do
FROM node:14-slim
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/cache/apt/*
# Copy binary to production image
COPY --from=builder /usr/src/app/ ./
COPY --from=tailscale /usr/src/app/tailscaled ./tailscaled
COPY --from=tailscale /usr/src/app/tailscale ./tailscale
RUN mkdir -p /var/run/tailscale /var/cache/tailscale /var/lib/tailscale
RUN chmod +x ./start.sh
(Not sure if the above change would cause an issue but putting it just in case).
When deploying to cloud run, the following issue comes up:
ipnserver: conn2: ReadMsg: read unix /var/run/tailscale/tailscaled.sock->@: read: connection reset by peer
Some more logs:
logpolicy: using system state directory "/var/lib/tailscale"
logpolicy.Read /var/lib/tailscale/tailscaled.log.conf: open /var/lib/tailscale/tailscaled.log.conf: no such file or directory
control: control server key from https://controlplane.tailscale.com: ts2021=[fSeS+], legacy=[nlFWp]
ipnserver: conn2: ReadMsg: read unix /var/run/tailscale/tailscaled.sock->@: read: connection reset by peer
Any thoughts?