Docker
Install Docker
Update Docker Mirrors
Edit daemon.json
like this.
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
Restart Docker.
Running Docker Without sudo
To use Docker without typing sudo
every time, follow these steps:
1. Create the Docker group (if it doesn't exist)
2. Add your user to the Docker group
3. Apply the changes
Log out and log back in, or run:
4. Test Docker access
If it works without sudo
, you're done!
⚠️ Note: Adding a user to the docker
group gives root-level access. Use with caution.