# From windows to docker MIG I'll just ask one trivial question

**URL:** <https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621>\
**Category:** FAQ\
**Tags:** windows-gui, docker, move-node\
**Created:** [March 25, 2024, 4:49am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621 "2024-03-25T04:49:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr.Ko](https://storj.bcdn.literatehosting.com/letter_avatar/dr.ko/32/6_449c533f586939b6e5f246632a46421f.png) [@Dr.Ko](https://forum.storj.io/u/Dr.Ko)\
**Post date:** [March 25, 2024, 4:49am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/1 "2024-03-25T04:49:53Z")

</div>

I’m a little confused, so I’m writing this just to check.

1. When all data has been transferred, authenticate using the command below.

```auto
identity authorize storagenode <email:characterstring>

grep -c BEGIN ~/.local/share/storj/identity/storagenode/ca.cert

grep -c BEGIN ~/.local/share/storj/identity/storagenode/identity.cert

```

`sudo docker pull storjlabs/storagenode:latest`

1. After installing storj, enter the command below without using SETUP.

```auto
docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967/tcp \
    -p 28967:28967/udp\
    -p 127.0.0.1:14002:14002 \
    -e WALLET="0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
    -e EMAIL="user@example.com" \
    -e ADDRESS="domain.ddns.net:28967" \
    -e STORAGE="2TB" \
    --user $(id -u):$(id -g) \
    --mount type=bind,source="<identity-dir>",destination=/app/identity \
    --mount type=bind,source="<storage-dir>",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest

```

All I have to do is start with the command above, right?

I think it’s true, but if I make a mistake, offline time will be longer, so I’m writing this to confirm. Thank you for your reply

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [March 25, 2024, 7:31am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/2 "2024-03-25T07:31:51Z")

</div>

> [@Dr.Ko](#):
>
> 1. When all data has been transferred, authenticate using the command below.
> 
> ```auto
> identity authorize storagenode <email:characterstring>
> 
> grep -c BEGIN ~/.local/share/storj/identity/storagenode/ca.cert
> 
> grep -c BEGIN ~/.local/share/storj/identity/storagenode/identity.cert
> 
> ```

this is not needed for the existing node, it should be done only for a new node.  
You need only run the `docker run` command without a SETUP variable but with all your parameters. If the paths are correct and your user has enough permissions - all should work correctly.  
You actually may change the owner forcibly to be sure that permissions are correct, i.e.

```auto
sudo chown $(id -u):$(id -g) -R /mnt/storj

```

where `/mnt/storj` is a path to the data location. If your identity placed elsewhere, you need to apply this command to that path too.

If you migrated node’s data, you also need to migrate its identity too, not generate a new one.

---

<div class="post-metadata">

**Author:** ![Dr.Ko](https://storj.bcdn.literatehosting.com/letter_avatar/dr.ko/32/6_449c533f586939b6e5f246632a46421f.png) [@Dr.Ko](https://forum.storj.io/u/Dr.Ko)\
**Post date:** [March 25, 2024, 9:12am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/3 "2024-03-25T09:12:38Z")

</div>

Thank you. I think it was a good question because you don’t have to do identity work 🙂  
And the data location is

 ![Screenshot_10](https://storj-s3.bcdn.literatehosting.net/original/2X/6/646e4aacb3253212f01b83f24b57340e7a7fd88f.png)

`sudo chown $(id -u):$(id -g) -R /share/CACHEDEV2_DATA/storj`

Is it okay to write it like above and then run enter…?!

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [March 26, 2024, 3:06am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/4 "2024-03-26T03:06:29Z")

</div>

I have no idea, what is your local path and it does not match the shown picture, it’s more confusing, than helping.  
Please give me result of the command:

```auto
df --si

```

---

<div class="post-metadata">

**Author:** ![Dr.Ko](https://storj.bcdn.literatehosting.com/letter_avatar/dr.ko/32/6_449c533f586939b6e5f246632a46421f.png) [@Dr.Ko](https://forum.storj.io/u/Dr.Ko)\
**Post date:** [March 26, 2024, 8:19am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/5 "2024-03-26T08:19:04Z")

</div>

![4243](https://storj-s3.bcdn.literatehosting.net/original/2X/1/16a5a4e6f4ec95512951ec29426aa22102882ee0.png)

 ![1234](https://storj-s3.bcdn.literatehosting.net/original/2X/b/b1513ee97250a2113212b6b49363b5dba3b6d69f.png)

The df --si command doesn’t work, so I try -i and it comes out. Is this correct…?!

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [March 26, 2024, 8:25am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/6 "2024-03-26T08:25:15Z")

</div>

No, then you may try to use `-H`, but it will produce the report in binary units, not SI (decimal units).  
However, for the purpose to see Mount points this one is good enough too.

So, I guess that the path `/share/CACHEDEV2_DATA/storj` is maybe correct for your device.  
Could you please show

```auto
ls -l /share/CACHEDEV2_DATA/storj

```

---

<div class="post-metadata">

**Author:** ![Dr.Ko](https://storj.bcdn.literatehosting.com/letter_avatar/dr.ko/32/6_449c533f586939b6e5f246632a46421f.png) [@Dr.Ko](https://forum.storj.io/u/Dr.Ko)\
**Post date:** [March 26, 2024, 9:32am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/7 "2024-03-26T09:32:07Z")

</div>

thank you!

 ![vdfdfd](https://storj-s3.bcdn.literatehosting.net/original/2X/7/75993d2cf9261fb0f63907777686f141a138d915.png)

Also, I found out the /mt command to speed up robocopy. Can I use this?  
`/nfl /ndl /mt:16`

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [March 27, 2024, 7:49am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/8 "2024-03-27T07:49:12Z")

</div>

The list looks correct. But if it really belongs to `everyone`, then you likely do not need to apply `sudo chown`.

I think you can use the `/mt` option. `/nfl` and `/ndl` are affects only logs, why do you need them?

---

<div class="post-metadata">

**Author:** ![Dr.Ko](https://storj.bcdn.literatehosting.com/letter_avatar/dr.ko/32/6_449c533f586939b6e5f246632a46421f.png) [@Dr.Ko](https://forum.storj.io/u/Dr.Ko)\
**Post date:** [March 27, 2024, 7:53am UTC](https://forum.storj.io/t/from-windows-to-docker-mig-ill-just-ask-one-trivial-question/25621/9 "2024-03-27T07:53:58Z")

</div>

I’m glad I don’t have to set up `sudo chown` 🙂

I asked because the code was suggested as a quick copy method on the Internet. I didn’t know that copying 4 tera would take this long… 😵 Thanks for the reply Alexey!!
