The following ways use default plugin fs
as example.
go get -u -d github.com/7sDream/rikka
cd $GOPATH/src/github.com/7sDream/rikka
go build .
./rikka -port 80 -pwd yourPassword
You can use ./rikka --help
to get more options and make you own launch command.
Because port 80 wll be used, may you need sudo
prefix.
Then you can open your browser to test Rikka.
docker pull 7sdream/rikka
docker run -d -p 80:80 7sdream/rikka -pwd yourPassword
You can set option based on you requirements.
Rikka image expose 80 port, you can map it based on needs.
Then you can open your browser to test Rikka.
Note: If you stop/remove Rikka container, the images you uploaded will be deleted too. If you want keep those files, please read next section: Use Volume.
Docker provide a feature called Volume. We can use it to keep out images.
Usage:
- Create volume:
docker volume create --name rikka_files
- Add this option when you start Rikka:
-v rikka_files:/go/src/github.com/7sDream/rikka/files
BTW: You can use -dir
option of plugin fs
to set image save dir, like bellow:
docker run -d -P -v rikka_files:/data --name rikka 7sdream/rikka -pwd 12345 -dir /data
So you need't input a long mount path like /go/src/github.com/7sDream/rikka/files
.
For example, you can use free-plan of DaoCloud to deploy a Rikka server.
See DaoCloud Deploy Guide for detail.
Main steps are the same.
See [Plugins Doc] for options for different plugins.