1 2 3 4 5 6 7 8
#!/bin/bash docker run -d \ --name registry \ --restart=always \ -p 4000:5000 \ -v registry:/var/lib/registry \ registry:2