Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Last active April 14, 2024 14:49
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jniltinho/bcb28a99aef33dcb5f35c297bf71e4ae to your computer and use it in GitHub Desktop.
Save jniltinho/bcb28a99aef33dcb5f35c297bf71e4ae to your computer and use it in GitHub Desktop.
Enable BuildKit Docker Ubuntu 22.04
#!/bin/bash
#
# https://docs.docker.com/build/buildkit/
# https://github.com/docker/buildx/releases/
# https://github.com/docker/buildx
mkdir -p $HOME/.docker/cli-plugins
wget https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64
chmod +x buildx-v0.11.2.linux-amd64
mv buildx-v0.11.2.linux-amd64 $HOME/.docker/cli-plugins/docker-buildx
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
@yinrong
Copy link

yinrong commented Feb 20, 2024

good! tested working in ubuntu 22.04 with apt installed docker.

@jniltinho
Copy link
Author

good! tested working in ubuntu 22.04 with apt installed docker.

@yinrong Thanks !! 💯

@edorgeville
Copy link

Works in WSL, thank you

$ uname -a
Linux DESKTOP 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

@Muntazir12mehdi
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment