Install Rosetta 2 before opening Docker Desktop

This commit is contained in:
cediackermann 2026-04-24 09:59:20 +02:00
parent ef27add5d3
commit 3be9b5604d

View file

@ -12,6 +12,10 @@ install_docker() {
print_success "Docker Desktop installed" print_success "Docker Desktop installed"
fi fi
print_warning "Installing Rosetta 2 (required by Docker)..."
softwareupdate --install-rosetta --agree-to-license
print_success "Rosetta 2 ready"
print_warning "Opening Docker Desktop..." print_warning "Opening Docker Desktop..."
if [ -d "/Applications/Docker.app" ]; then if [ -d "/Applications/Docker.app" ]; then
open -a Docker open -a Docker