mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 09:55:50 +01:00
Fix: Fix bug in docker's doc
This commit is contained in:
@@ -8,8 +8,9 @@ the end of this page.
|
|||||||
|
|
||||||
# Get Image form DockerHub
|
# Get Image form DockerHub
|
||||||
|
|
||||||
The image is here: https://hub.docker.com/repository/docker/getpinry/pinry
|
The image is here: [getpinry/pinry](https://hub.docker.com/r/getpinry/pinry),
|
||||||
or you could simply pull the image from DockerHub's registry via
|
or you could simply pull the image from DockerHub's registry via
|
||||||
|
|
||||||
```
|
```
|
||||||
docker pull getpinry/pinry
|
docker pull getpinry/pinry
|
||||||
```
|
```
|
||||||
@@ -34,13 +35,25 @@ git clone https://github.com/pinry/pinry
|
|||||||
cd pinry/docker
|
cd pinry/docker
|
||||||
./build_docker.sh
|
./build_docker.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you can start your container by command like this
|
Now you can start your container by command like this
|
||||||
|
|
||||||
```
|
```
|
||||||
# this is where your database, local_settings and pins located
|
# this is where your database, local_settings and pins located
|
||||||
mkdir data
|
mkdir data
|
||||||
# use absolute path for docker to avoid using default data-volume (we use directory instead)
|
# use absolute path for docker to avoid using default data-volume (we use directory instead)
|
||||||
./start_docker.sh `readlink -f data`
|
./start_docker.sh `readlink -f data`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Also, if you want to use a "named volume" instead, you can do this:
|
||||||
|
|
||||||
|
````
|
||||||
|
docker volume create pinry
|
||||||
|
docker run -d=true -p=80:80 \
|
||||||
|
-v pinry:/data \
|
||||||
|
getpinry/pinry
|
||||||
|
````
|
||||||
|
|
||||||
Please visit `http://your-ip` to visit your instance and register a new account, enjoy it.
|
Please visit `http://your-ip` to visit your instance and register a new account, enjoy it.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user