You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Management Agent can be run as the root user if access to specific locations (example: `/var/log`) within the container environment are restricted to only the root user as described in the following steps. Please also note that the steps given below must be applied prior to container creation. Applying these changes after creating the container is not supported.
107
+
108
+
##### Steps to run as root when using Docker Compose
109
+
110
+
1. Update the .env file to override the agent run-as-user environment variable
111
+
```shell
112
+
$ echo"RUN_AGENT_AS_USER=root">> .env
113
+
```
114
+
**Note: Modifying this environment variable after container creation is not supported. Refer to volume cleanup in Helpful administration commands section and then startover.**
115
+
116
+
##### Steps to run as root when using Docker CLI
117
+
118
+
1. Start a container overriding the agent run-as-user environment variable
**Note: Setting this environment variable after container creation is not supported. Refer to volume cleanup in Helpful administration commands section and then startover.**
123
+
124
+
104
125
#### Steps to execute custom user operations
105
126
106
127
Users can provide custom shell script commands to execute before starting Management Agent as described in the following steps
@@ -135,6 +156,18 @@ Users can provide custom shell script commands to execute before starting Manage
135
156
$ docker logs mgmtagent-container
136
157
```
137
158
159
+
1. Cleanup volume using Docker Compose
160
+
161
+
```shell
162
+
$ docker-compose down --volumes
163
+
```
164
+
165
+
1. Cleanup volume using Docker CLI
166
+
167
+
```shell
168
+
$ docker volume rm mgmtagent-volume
169
+
```
170
+
138
171
## License
139
172
To download and run the Oracle Management Agent, regardless whether inside or outside a container, you must download the binaries from the Oracle website and accept the license indicated at that page.
0 commit comments