Improve dockerfiles chapter
This commit is contained in:
parent
15cc8d404c
commit
594f853605
3 changed files with 16 additions and 5 deletions
|
|
@ -21,11 +21,22 @@ peut-être déjà le plugin installé. Si vous n'avez pas d'erreur en exécutant
|
|||
vous pouvez l'installer comme ceci :
|
||||
|
||||
<div lang="en-US">
|
||||
```bash
|
||||
# Pour Ubuntu/Debian
|
||||
sudo apt-get install docker-buildx-plugin
|
||||
|
||||
# Pour Fedora/RHEL
|
||||
sudo dnf install docker-buildx-plugin
|
||||
```
|
||||
V="v0.9.1"
|
||||
|
||||
Alternativement, vous pouvez l'installer manuellement depuis GitHub :
|
||||
|
||||
```bash
|
||||
# Récupérer la dernière version depuis GitHub
|
||||
BUILDX_VERSION=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | grep '"tag_name"' | cut -d'"' -f4)
|
||||
mkdir -p ~/.docker/cli-plugins
|
||||
curl -L -s -S -o ~/.docker/cli-plugins/docker-buildx \
|
||||
https://github.com/docker/buildx/releases/download/$V/buildx-$V.linux-amd64
|
||||
https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64
|
||||
chmod +x ~/.docker/cli-plugins/docker-buildx
|
||||
```
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue