![[8.5.5.9 or later]](../ng_v8559.gif)
Creating a workbench Liberty server in a Docker container by using developer tools
You can use WebSphere Developer Tools to create a reference in the workbench to a Liberty server that is running in a Docker container. You can use this reference to handle your server requests from the workbench.
Before you begin
- Install WebSphere Developer Tools. For more information about installing WebSphere Developer Tools, see Installing the Liberty developer tools and (optionally) Liberty.
- Start a Liberty server in a local Docker container and ensure that both the HTTP and HTTPS ports are mapped to the host. For more information about starting a Liberty server in a local Docker container, see WASdev GitHub.
About this task
As you complete the steps, you can install WebSphere Application Server Liberty and download add-ons in the Liberty Repository from the WASdev community download site. After you install Liberty, you can select your Docker container. Then, you can enter the Liberty server security credentials for your Liberty server to create a workbench reference to your Liberty server in your Docker container.
Procedure
Results
You created a workbench server reference to a server that is running in a Docker container.
- To see the server that you created and its server configuration, open the Servers view.
- To see the project, the server folder, and the server configuration files, open the Enterprise Explorer view.
What to do next
- You can edit the server configuration. For more information, see Editing the Liberty configuration by using developer tools
- To start or stop a server, or add or remove applications on the server, right-click your server
to use the server context menu or use the tray buttons in the
Servers view. For more information, see Starting and stopping a server by using developer tools.Remember: To access these options, select the Server Entry in the Servers view. Do not select a server configuration such as the Server Configuration or server.xml entry.Tip: The application address that the server logs in the Console view is valid within the Docker container only. To load an application in a browser, use the host mapped IP address and host mapped HTTP or HTTPS port. If you use the Run on Server or Debug on Server options, the application is automatically loaded with the correct IP address and port.
To make it easier to determine the correct port, map the ports to specific ports on the host by using the -p option rather than the -P option when you create the Docker container.
- You can configure your Liberty server to authenticate users with Tivoli
Directory Server.
- Right-click Servers.
- Select .
- Select the snippets and accept the licenses agreements.