Skip to content

spotsnel/cloudflare-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Warp client (system container)

System(d) container for use with Podman Machine, MicroShift, OpenShift Local and Podman Desktop installations, etc.

Usage

Container creation

Start the system container. You can choose between the following options: Debian, Fedora or RHEL UBI9

Debian-based
$ podman run -d --name=cloudflarewarp \
        --hostname $HOSTNAME-cloudflarewarp \
        --network=host --systemd=always \
        ghcr.io/spotsnel/cloudflare-client:latest
Fedora-based
$ podman run -d --name=cloudflarewarp \
        --hostname $HOSTNAME-cloudflarewarp \
        --network=host --systemd=always \
        ghcr.io/spotsnel/cloudflare-client/fedora:latest
RHEL UBI9-based
$ podman run -d --name=cloudflarewarp \
        --hostname $HOSTNAME-cloudflarewarp \
        --network=host --systemd=always \
        ghcr.io/spotsnel/cloudflare-client/ubi9:latest

Client registration

Register the client with

$ podman exec -it cloudflarewarp warp-cli register 

or using a team account with

$ podman exec -it cloudflarewarp warp-cli teams-enroll 

per instructions at #1

Use the CLI, Podman Desktop or Cockpit terminal to do so.

Systemd

The lifecycle of the container can be maintained by the host using a systemd service unit:

$ (cd $HOME/.config/systemd/user && podman generate systemd --name --files cloudflarewarp 
$ systemctl --user enable --now container-cloudflarewarp
$ loginctl enable-linger $USER