Skip to content

Commit

Permalink
Install buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed May 28, 2024
1 parent 55b72a7 commit df4605b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/dappnode_install_pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ add_docker_repo() {
# DOCKER INSTALLATION
install_docker() {
apt-get update -y
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | tee -a $LOG_FILE
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | tee -a $LOG_FILE

# Ensure xz is installed
[ -f "/usr/bin/xz" ] || (apt-get install -y xz-utils)

CURRENT_USER=$(grep 1000 "/etc/passwd" | cut -f 1 -d:)
[ -z "$CURRENT_USER" ] || usermod -aG docker "$CURRENT_USER"
# Not working in Ubuntu ISO because the user is not created before executing late-commands
USER=$(grep 1000 "/etc/passwd" | cut -f 1 -d:)
[ -z "$USER" ] || usermod -aG docker "$USER"

# Disable check if ISO installation since it is not possible to check in this way
if [ "$ISO_INSTALLATION" = "false" ]; then
Expand Down

0 comments on commit df4605b

Please sign in to comment.