Pack is a CLI tool maintained by the CNB project to support the use of buildpacks.
It enables the following functionality:
build
an application using buildpacks.rebase
application images created using buildpacks.Pack works as both a Command Line Interface (CLI) and a Go library.
pack
CLIYou can install the most recent version of the pack
CLI (version 0.35.1) on the following operating systems:
On Arch Linux, there are two packages available:
pack
is available as a container image on Docker Hub as buildpacksio/pack
.
buildpacksio/pack:latest
buildpacksio/pack:0.35.1
In some container environments you may be required to mount your local Docker daemon’s socket.
For example, using the Docker CLI:
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workspace -w /workspace \
buildpacksio/pack build <my-image> --builder <builder-image>
pack
can be installed via Homebrew:
brew install buildpacks/tap/pack
pack
can be installed using the official PPA by running the following commands:
sudo add-apt-repository ppa:cncf-buildpacks/pack-cli
sudo apt-get update
sudo apt-get install pack-cli
The following command will download the latest version of pack
from GitHub and install it in /usr/local/bin/
.
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.35.1/pack-v0.35.1-linux.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
To manually install pack
, visit the releases page on GitHub.
.tgz
or .zip
file for your platformpack
binarypack
to PATH
pack
is available as a container image on Docker Hub as buildpacksio/pack
.
buildpacksio/pack:latest
buildpacksio/pack:0.35.1
In some container environments you may be required to mount your local Docker daemon’s socket.
For example, using the Docker CLI:
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workspace -w /workspace \
buildpacksio/pack build <my-image> --builder <builder-image>
pack
can be installed via Homebrew:
brew install buildpacks/tap/pack
The following command will download the latest version of pack
from GitHub and install it in /usr/local/bin/
.
Intel:
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.35.1/pack-v0.35.1-macos.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
Apple Silicon:
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.35.1/pack-v0.35.1-macos-arm64.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
To manually install pack
, visit the releases page on GitHub.
.tgz
or .zip
file for your platformpack
binarypack
to PATH
To install pack
on Windows, we recommend using Chocolatey:
choco install pack --version=0.35.1
pack
is available as a container image on Docker Hub as buildpacksio/pack
.
buildpacksio/pack:latest
buildpacksio/pack:0.35.1
In some container environments you may be required to mount your local Docker daemon’s socket.
For example, using the Docker CLI:
docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workspace -w /workspace \
buildpacksio/pack build <my-image> --builder <builder-image>
pack
can be installed via Scoop:
scoop install pack
To manually install pack
, visit the releases page on GitHub.
.tgz
or .zip
file for your platformpack
binarypack
to PATH
Prior to publishing releases, we publish RC (release candidate) builds of pack
. You can install those by downloading the releases from the releases page on GitHub.
pack
supports shell completions for the following shells -
bash
fish
zsh
To configure your bash
shell to load completions for each session, add the following to your .bashrc
or .bash_profile
:
. $(pack completion)
To configure your fish
shell to load completions for each session, add the following to your ~/.config/fish/config.fish
:
source (pack completion --shell fish)
To configure your zsh
shell to load completions for each session, add the following to your .zshrc
:
. $(pack completion --shell zsh)
go get -u github.com/buildpacks/pack