[GH-ISSUE #355] Installation without Docker? #202

Closed
opened 2026-03-03 01:26:37 +03:00 by kerem · 9 comments
Owner

Originally created by @Geobert on GitHub (Jan 21, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/355

Hi there,

I'm quite a noob in server admin field and I've never used Docker before. Everything on my small personal server (Debian stretch) is installed the old apt way.

That being said, is there a way to install bitwarden_rs without Docker?

If not, I believe I'll learn Docker ^^

Originally created by @Geobert on GitHub (Jan 21, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/355 Hi there, I'm quite a noob in server admin field and I've never used Docker before. Everything on my small personal server (Debian stretch) is installed the old apt way. That being said, is there a way to install bitwarden_rs without Docker? If not, I believe I'll learn Docker ^^
kerem closed this issue 2026-03-03 01:26:38 +03:00
Author
Owner

@pgaskin commented on GitHub (Jan 21, 2019):

You can extract the docker image (or build it yourself).

First, download: https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh

Then:

rm -rf dl
mkdir dl
cd dl
../download-frozen-image-v2.sh img mprasil/bitwarden:alpine || echo "Error downloading image"
for t in img/*/layer.tar; do
    tar xf "$t" web-vault &>/dev/null
    tar xf "$t" bitwarden_rs &>/dev/null
done
rm -rf img
[[ -d web-vault ]] || echo "Error extracting web-vault"
[[ -f bitwarden_rs ]] || echo "Error extracting bitwarden_rs"

Note: You can ignore the errors about go not being installed.

<!-- gh-comment-id:456144762 --> @pgaskin commented on GitHub (Jan 21, 2019): You can extract the docker image (or build it yourself). First, download: https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh Then: ```` rm -rf dl mkdir dl cd dl ../download-frozen-image-v2.sh img mprasil/bitwarden:alpine || echo "Error downloading image" for t in img/*/layer.tar; do tar xf "$t" web-vault &>/dev/null tar xf "$t" bitwarden_rs &>/dev/null done rm -rf img [[ -d web-vault ]] || echo "Error extracting web-vault" [[ -f bitwarden_rs ]] || echo "Error extracting bitwarden_rs" ```` Note: You can ignore the errors about go not being installed.
Author
Owner

@dani-garcia commented on GitHub (Jan 21, 2019):

If you can build the binary yourself, you can read https://github.com/dani-garcia/bitwarden_rs/wiki/Building-binary. I think that would be the best way. Extracting the binary from the image, like the previous comment mentioned, is also an alternative.

<!-- gh-comment-id:456146459 --> @dani-garcia commented on GitHub (Jan 21, 2019): If you can build the binary yourself, you can read https://github.com/dani-garcia/bitwarden_rs/wiki/Building-binary. I think that would be the best way. Extracting the binary from the image, like the previous comment mentioned, is also an alternative.
Author
Owner

@Geobert commented on GitHub (Jan 21, 2019):

I'll try that thank you!

<!-- gh-comment-id:456162576 --> @Geobert commented on GitHub (Jan 21, 2019): I'll try that thank you!
Author
Owner

@Geobert commented on GitHub (Jan 21, 2019):

I tried the script, I got error: "jq" not found!

<!-- gh-comment-id:456213145 --> @Geobert commented on GitHub (Jan 21, 2019): I tried the script, I got `error: "jq" not found!`
Author
Owner

@pgaskin commented on GitHub (Jan 21, 2019):

You need to apt install jq.

<!-- gh-comment-id:456213304 --> @pgaskin commented on GitHub (Jan 21, 2019): You need to apt install jq.
Author
Owner

@Geobert commented on GitHub (Jan 22, 2019):

Thanks, I didn't know about jq until today :D

It seems I need go as well but can't install it through apt. I'll try compilation, I'm a Rust hobbyist, I already have the stable toolchain. Is nightly still mandatory?

EDIT: edited the script to remove go at the beginning check, it works ^^ My question about nightly still goes, by curiosity and maybe future contrib :D

<!-- gh-comment-id:456305544 --> @Geobert commented on GitHub (Jan 22, 2019): Thanks, I didn't know about jq until today :D It seems I need `go` as well but can't install it through apt. I'll try compilation, I'm a Rust hobbyist, I already have the stable toolchain. Is nightly still mandatory? EDIT: edited the script to remove go at the beginning check, it works ^^ My question about nightly still goes, by curiosity and maybe future contrib :D
Author
Owner

@mprasil commented on GitHub (Jan 22, 2019):

I'm kinda confused what makes you think you need go? Is it a dependency to build Vault? You can also skip that step and download already built Vault from here.

As for your other question, you still need nightly, but there's rust-toolchain file in the repository that should make cargo build download appropriate version automatically. (we require nightly as our upstream dependency - Rocket requires nightly) Hope that helps.

<!-- gh-comment-id:456353899 --> @mprasil commented on GitHub (Jan 22, 2019): I'm kinda confused what makes you think you need `go`? Is it a dependency to build Vault? You can also skip that step and download already built Vault from [here](https://github.com/dani-garcia/bw_web_builds/releases). As for your other question, you still need nightly, but there's `rust-toolchain` file in the repository that should make `cargo build` download appropriate version automatically. (we require nightly as our upstream dependency - Rocket requires nightly) Hope that helps.
Author
Owner

@Geobert commented on GitHub (Jan 22, 2019):

go's presence is checked in the shell script https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh but @geek1011 told me it can be ignore

thanks for the nightly explanation!

<!-- gh-comment-id:456363872 --> @Geobert commented on GitHub (Jan 22, 2019): `go`'s presence is checked in the shell script https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh but @geek1011 told me it can be ignore thanks for the nightly explanation!
Author
Owner

@mprasil commented on GitHub (Jan 22, 2019):

Ah right, that's for the moby project, yeah that makes sense as it's written in Go.

<!-- gh-comment-id:456420470 --> @mprasil commented on GitHub (Jan 22, 2019): Ah right, that's for the moby project, yeah that makes sense as it's written in Go.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#202
No description provided.