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