Update README.md
This commit is contained in:
parent
4187df9ab6
commit
74169f4516
17
README.md
17
README.md
@ -2,23 +2,24 @@
|
||||
Perustuu wttrin sääpalveluun: https://github.com/chubin/wttr.in
|
||||
|
||||
Kloonaa kansio:
|
||||
git clone http://88.114.1.82:3000/RikuSi/docker_weather.git
|
||||
<code>git clone http://88.114.1.82:3000/RikuSi/docker_weather.git</code>
|
||||
|
||||
Mene kansioon:
|
||||
cd docker_weather
|
||||
<code>cd docker_weather</code>
|
||||
|
||||
Pura kansio:
|
||||
unzip weather-image.tar.zip
|
||||
<code>unzip weather-image.tar.zip</code>
|
||||
|
||||
Lataa kontti Dockeriin:
|
||||
sudo docker load -i weather-image.tar
|
||||
<code>sudo docker load -i weather-image.tar</code>
|
||||
|
||||
[Aika tiedot (TZ) löytyy täältä: link](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
|
||||
|
||||
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
Käynnistä kontti:
|
||||
sudo docker run -d --name weather -e LATITUDE="61.4981" -e LONGITUDE="23.7608" -e MAX_RESULTS="10" -e TZ="Europe/Helsinki" -p 8600:80 weather-image
|
||||
<code>sudo docker run -d --name weather -e LATITUDE="61.4981" -e LONGITUDE="23.7608" -e MAX_RESULTS="10" -e TZ="Europe/Helsinki" -p 8600:80 weather-image</code>
|
||||
|
||||
|
||||
sudo docker update --restart unless-stopped weather
|
||||
Käynnistä kontti tietokoneen käynnistyessä:
|
||||
<code>sudo docker update --restart unless-stopped weather</code>
|
||||
|
||||
http://localhost:8600
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user