When creating the server remember to set the host to be
dockerhost ( at least on OSX and Windows ) as shown above.
Since we’ve configured the server to be remote, and for communication with the server
to be handled over the management port, we mark it as
Management Operations in the second page of the New Server wizard.
We also don’t require a runtime here, though we may need one later when creating
a functional web project with classes. For now, we won’t create one. You’ll also
note that we have marked that the
Server lifecycle is externally managed,
which means we won’t be starting or stopping the server via JBoss Tools, since
you’ll be controlling that via Docker on your own.
On the next page, you’ll note that our remote runtime details are optional.
Since the server is configured only for management operations, we have no real need
to know where the filesystem is located or how to access it. We can safely ignore
this page and just proceed through it.
Now, your server is created, but we still need to set the management credentials.
First, double-click your Server in the
Servers View to open the
Then, set your credentials as you did in your
Dockerfile as shown below.
You’ll note that some default values are already there, and so you’ll need to
delete them and set your own values.