-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
[![License](http://poser.pugx.org/stas-plov/docker-unlock/license)](https://packagist.org/packages/stas-plov/docker-unlock) | ||
|
||
# docker-unlock | ||
Unlocks docker hub in Russia, Cuba, Iran, North Korea, Republic of Crimea, Sudan, and Syria | ||
### Unlocks docker hub in Russia, Cuba, Iran, North Korea, Republic of Crimea, Sudan, and Syria | ||
|
||
## How to Use | ||
```bash | ||
./unlock.sh | ||
``` | ||
### Don't forget to make the script executable: | ||
```bash | ||
chmod +x unlock.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Security Policy | ||
|
||
## Reporting a Vulnerability | ||
|
||
Please report privately at [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
json_content='{ | ||
"registry-mirrors" : [ | ||
"https://mirror.gcr.io", | ||
"https://daocloud.io", | ||
"https://c.163.com", | ||
"https://huecker.io", | ||
"https://registry.docker-cn.com" | ||
] | ||
}' | ||
|
||
echo "$json_content" | sudo tee /etc/docker/daemon.json > /dev/null | ||
|
||
sudo systemctl restart docker |