mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 18:27:50 +08:00
5787cfa699
* initial * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix
16 lines
694 B
Bash
16 lines
694 B
Bash
#!/bin/bash
|
|
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
# This script is to set up the machine for the Docker host.
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
## Docker
|
|
apt-get -y --no-install-recommends install ca-certificates gnupg lsb-release
|
|
mkdir -p /etc/apt/keyrings
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
|
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
apt-get update
|
|
apt-get -y --no-install-recommends install docker-ce docker-ce-cli |