[16.0.0.4 and later]

Running Docker applications directly from a workspace

For quicker publish operations in a development environment, immediately run Docker applications directly from the workspace when you create a server.

About this task

Run Docker applications directly from a workspace without special packaging.

For Windows platformsIf you use non-native Docker, store the Eclipse workspace in the C:\Users directory.

If you are a Mac OS X user, store the workplace in /Users directory.

If you want to use a workspace that is outside the default users directory, the directory needs to be shared and accessible from the Docker container.

Procedure

  1. From the Liberty Docker wizard page, open the New Server pop-up window.
  2. Docker containers that are configured with certain mounted volumes include a check box for the Run applications directly from the workspace option. Select the check box.
    1. To verify that a container supports the option to run applications directly from the workspace, select the container name.
    2. Complete Liberty server security credentials and connection parameters.
    3. Click Verify.
    4. Accept all security dialogs as you are prompted.
    5. Click Finish.
    6. A window appears to inform you whether the container can or cannot run applications directly from the workspace.
    • If the container cannot, select Yes to turn on the option to run applications directly from the workspace. This option stops the current container, and a new container with mounted volumes is created. Select No to continue to use the current container with the option to run applications directly from the workspace turned off.
    • If the container can, then it is used as it is, and no new container is created.
  3. If the container that you are running does not support running applications directly from the workspace, you can proceed with running the applications after you clear the option. However, you cannot run them directly from the workspace. If you choose to run applications directly from a workspace, the current container is stopped, and a new container is created.

Icon that indicates the type of topic Task topic

File name: t_run_app_workspace.html