# Docker on windows user and password

**URL:** https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157
**Category:** User
**Tags:** docker
**Created:** [February 20, 2019, 4:31pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157 "2019-02-20T16:31:55Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Rafa](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@Rafa](https://discuss.tryton.org/u/Rafa)
#### Post date: [February 20, 2019, 4:31pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/1 "2019-02-20T16:31:55Z")

</div>

Hello.  
We are new with Tryton.  
We installed the docker aplication on windows and followed the [https://hub.docker.com/r/tryton/tryton/](https://hub.docker.com/r/tryton/tryton/) guide to install.  
It did not produced any errors, when we try to connect to [http://localhost:8080](http://localhost:8080) it prompt us for the user for the tryton db, we input admin and the password used in the default installation which is “mysecretpassword” (we also tried different ones) but it keeps prompting for the password and we can never access it.  
What are we doing wrong?  
we also tried to connect with the windows desktop client but it cannt find the db.  
Thank you very much

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 20, 2019, 4:50pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/2 "2019-02-20T16:50:49Z")

</div>

> [@Rafa](#):
>
> What are we doing wrong?

It is probably not the password you think you have typed.  
You can reset the password with `trytond-admin --reset-password -d <database name>`

> [@Rafa](#):
>
> we also tried to connect with the windows desktop client but it cannt find the db.

I guess it is from another machine, so you must be sure that the docker host redirect the connection to the docker container.

---

<div class="post-metadata">

### Author: ![Rafa](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@Rafa](https://discuss.tryton.org/u/Rafa)
#### Post date: [February 20, 2019, 4:54pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/3 "2019-02-20T16:54:03Z")

</div>

Hello Cédric, we tried to change the password on the CMD but it says trytond is not a command. besides the tryton package do we need to install trytond?  
Thanks  
Rafa

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 20, 2019, 4:59pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/4 "2019-02-20T16:59:16Z")

</div>

> [@Rafa](#):
>
> we tried to change the password on the CMD but it says trytond is not a command

It is a command to run on the docker container like:

```
docker run --link tryton-postgres:postgres -it tryton/tryton trytond-admin -d tryton --reset-password

```

> [@Rafa](#):
>
> besides the tryton package do we need to install trytond

With a docker image you have nothing to install, everything is embedded into the image.

---

<div class="post-metadata">

### Author: ![Rafa](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@Rafa](https://discuss.tryton.org/u/Rafa)
#### Post date: [February 20, 2019, 5:03pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/5 "2019-02-20T17:03:17Z")

</div>

we used:

```
>docker trytond-admin --reset-password -d tryton
and got this:
unknown flag: --reset-password
See 'docker --help'

```

Thank you so much  
Rafa

---

<div class="post-metadata">

### Author: ![Rafa](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@Rafa](https://discuss.tryton.org/u/Rafa)
#### Post date: [February 20, 2019, 5:08pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/6 "2019-02-20T17:08:41Z")

</div>

hi Cédric.  
It didnt work for us, it is really strange  
the last command said:unknown flag: --reset-password

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 20, 2019, 5:20pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/7 "2019-02-20T17:20:10Z")

</div>

Well from what you copied, it is not the same command as the one I gave. You are missing the `run` action and the `--link` `-it` options etc.

---

<div class="post-metadata">

### Author: ![Rafa](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@Rafa](https://discuss.tryton.org/u/Rafa)
#### Post date: [February 20, 2019, 5:22pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/8 "2019-02-20T17:22:00Z")

</div>

you were right, when we run the complete command we get this:  
Traceback (most recent call last):  
File “/usr/local/bin/trytond-admin”, line 21, in   
admin.run(options)  
File “/usr/local/lib/python3.5/dist-packages/trytond/admin.py”, line 120, in run  
configuration.save()  
File “/usr/local/lib/python3.5/dist-packages/trytond/transaction.py”, line 122, in **exit**  
self.stop(type is None)  
File “/usr/local/lib/python3.5/dist-packages/trytond/transaction.py”, line 133, in stop  
self.commit()  
File “/usr/local/lib/python3.5/dist-packages/trytond/transaction.py”, line 206, in commit  
datamanager.tpc\_vote(self)  
File “/usr/local/lib/python3.5/dist-packages/trytond/sendmail.py”, line 94, in tpc\_vote  
self.\_server = get\_smtp\_server(self.uri)  
File “/usr/local/lib/python3.5/dist-packages/trytond/sendmail.py”, line 55, in get\_smtp\_server  
server = smtplib.SMTP(uri.hostname, uri.port, \*\*extra)  
File “/usr/lib/python3.5/smtplib.py”, line 251, in **init**  
(code, msg) = self.connect(host, port)  
File “/usr/lib/python3.5/smtplib.py”, line 335, in connect  
self.sock = self.\_get\_socket(host, port, self.timeout)  
File “/usr/lib/python3.5/smtplib.py”, line 306, in \_get\_socket  
self.source\_address)  
File “/usr/lib/python3.5/socket.py”, line 712, in create\_connection  
raise err  
File “/usr/lib/python3.5/socket.py”, line 703, in create\_connection  
sock.connect(sa)  
OSError: [Errno 99] Cannot assign requested address

---

<div class="post-metadata">

### Author: ![Rafa](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@Rafa](https://discuss.tryton.org/u/Rafa)
#### Post date: [February 20, 2019, 5:24pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/9 "2019-02-20T17:24:16Z")

</div>

could it have to do with firewall or antivirus?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 20, 2019, 5:29pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/10 "2019-02-20T17:29:45Z")

</div>

Indeed I gave you the command to send a reset password so it requires to have an SMTP server configured.  
Indeed you can just use the command to set the password:

```
docker run --link tryton-postgres:postgres -it tryton/tryton trytond-admin -d tryton --password

```

---

<div class="post-metadata">

### Author: ![Rafa](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@Rafa](https://discuss.tryton.org/u/Rafa)
#### Post date: [February 20, 2019, 5:31pm UTC](https://discuss.tryton.org/t/docker-on-windows-user-and-password/1157/11 "2019-02-20T17:31:55Z")

</div>

> [@ced](#):
>
> docker run --link tryton-postgres:postgres -it tryton/tryton trytond-admin -d tryton --password

IT WORKED  
thank you sooo much Cédric.  
Have a nice day  
Rafa
