This project sets up an Ubuntu 22.04 environment using Docker and Docker Compose. It's useful for development, testing, or sandboxing inside a lightweight container.
ubuntu-container/ βββ Dockerfile βββ docker-compose.yml βββ README.md βββ data/ # Optional - Shared volume between host and container
docker compose up --build
or
docker compose up --build -dThis will:
- Build the Docker image from the Dockerfile
- Start a container named ubuntu_container
- Mount the ./data folder to /home/devuser/data in the container
docker exec -it ubuntu_container bashTo stop and clean up the container:
docker compose down
Default User
| Username | Password |
|---|---|
| devuser | devpass |
Installed Packages
sudo, curl, wget, git, vim, nano, python3, python3-pip
You can add more tools by editing the Dockerfile.
Shared Volume
The data/ directory on your host is mounted to:
/home/devuser/data