Install

Supported operating systems

You can install the most recent version of pack (version 0.13.1) as an executable binary on the following operating systems:


Linux

Distro-Specific

Arch Linux

Homebrew

brew install buildpacks/tap/pack

Command

pack is available on GitHub releases so you can directly get and install it.

(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.13.1/pack-v0.13.1-linux.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)

Optional: Enable auto-completion


macOS

Homebrew

To install pack on macOS, the easiest way is to use Homebrew:

brew install buildpacks/tap/pack

Optional: Enable auto-completion


Windows

To install pack on Windows, we recommend using Chocolatey:

choco install pack --version=0.13.1

Alternatively, you can install the Windows executable for pack by downloading the Windows ZIP file.


Ready-to-Run Container Images

pack is also available as container images on Docker Hub as buildpacksio/pack (definition files).

Tags

  • Use this tag to track the latest release:
    • buildpacksio/pack:latest
  • Use a version tag to pin a specific release:

Usage

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>

Auto-completion

To configure your bash shell to load completions for each session, add the following to your .bashrc or .bash_profile:

. $(pack completion)

Reference

To learn how to use pack, just run:

pack help

or check out the documentation here.