Ubuntu Development

Usage

cat > docker-compose.yml <<-'EOF'
# https://hub.docker.com/_/ubuntu
version: "3"

services:
  ubuntu:
    image: ubuntu:20.04
    network_mode: host
    restart: always
    tty: true
    volumes:
      - $PWD/ubuntu/workspace/:/root/workspace/

EOF

Start

docker-compose up --detach
docker exec -it 31f24aea185a /bin/bash
apt update
apt install --yes --no-install-recommends ca-certificates
apt install --yes --no-install-recommends build-essential
apt install --yes --no-install-recommends curl
apt install --yes --no-install-recommends vim
apt install --yes --no-install-recommends openssh-server
apt install --yes --no-install-recommends sudo
apt install --yes --no-install-recommends git
apt install --yes --no-install-recommends zsh
apt update
posted @ 2023-05-12 02:52  Arkx86  阅读(13)  评论(0)    收藏  举报