Skip to content

Commit 0486e0c

Browse files
authored
Merge pull request #78419 from dominicbetts/remote-updates
Update for permissions
2 parents e9bfb50 + aaaeab5 commit 0486e0c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/iot-accelerators/iot-accelerators-remote-monitoring-deploy-simulated-device.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@ In this section, you configure Docker to load the device model files from the **
8585
1. Copy the existing device model files from the container to the new location. First, find the container ID for the device simulation container:
8686

8787
```sh
88-
docker ps
88+
sudo docker ps
8989
```
9090

9191
Then copy the device model files to the **tmp** folder in the virtual machine. The following command assumes the container ID is c378d6878407 -- replace this value with your device simulation container ID:
9292

9393
```sh
94-
docker cp c378d6878407:/app/webservice/data/devicemodels /tmp
94+
sudo docker cp c378d6878407:/app/webservice/data/devicemodels /tmp
95+
sudo chown -R azureuser /tmp/devicemodels/
9596
```
9697

9798
Keep the **bash** window with your SSH session open.
@@ -113,13 +114,13 @@ In this section, you configure Docker to load the device model files from the **
113114
If you want to see status of the running Docker containers and their container IDs, use the following command:
114115

115116
```sh
116-
docker ps
117+
sudo docker ps
117118
```
118119

119120
If you want to see the log from the device simulation container, run the following command. Replace the container ID with the ID of your device simulation container:
120121

121122
```sh
122-
docker logs -f 5d3f3e78822e
123+
sudo docker logs -f 5d3f3e78822e
123124
```
124125

125126
## Run simulation

0 commit comments

Comments
 (0)