Update dockerhub.md (#4394)

This commit is contained in:
Milos Gajdos 2024-07-01 19:04:39 +01:00 committed by GitHub
commit 2b036a9fc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ and the above example command does not mount a local filesystem volume into the
If you wish to mount the local filesystem to the `rootdirectory` of the If you wish to mount the local filesystem to the `rootdirectory` of the
`filesystem` storage driver run the following command: `filesystem` storage driver run the following command:
``` ```
docker run -d -p 5000:5000 $PWD/FS/PATH:/var/lib/registry --restart always --name registry distribution/distribution:edge docker run -d -p 5000:5000 -v $PWD/FS/PATH:/var/lib/registry --restart always --name registry distribution/distribution:edge
``` ```
### Custom configuration ### Custom configuration
@ -44,7 +44,7 @@ docker run -d -p 5000:5000 $PWD/FS/PATH:/var/lib/registry --restart always --nam
If you don't wan to use the default configuration file, you can supply If you don't wan to use the default configuration file, you can supply
your own custom configuration file as follows: your own custom configuration file as follows:
``` ```
docker run -d -p 5000:5000 $PWD/PATH/TO/config.yml:/etc/distribution/config.yml --restart always --name registry distribution/distribution:edge docker run -d -p 5000:5000 -v $PWD/PATH/TO/config.yml:/etc/distribution/config.yml --restart always --name registry distribution/distribution:edge
``` ```
## Communication ## Communication