Artifactory not usable through localhost, but works with 127.0.0.1

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, docker-compose

Research direction

Start by reproducing the redirect after launching the containers with docker-compose, comparing access through localhost:8082 and 127.0.0.1:8082. Inspect the container and redirect configuration involved in the Artifactory startup. Done means localhost:8082 reaches the Artifactory UI without redirecting to the container name.

Written by the indexing model from the issue text.

Description

First of all, thank you for the great tutorials!

After using docker-compose to start the containers, I could not use artifactory through localhost:8082 in my browser, because it forwards me to http://jfrog-artifactory-training:8082/ui/ (http://container_name:8082/ui). Using the address 127.0.0.1:8082 does work, because it points me to 127.0.0.1:8082/ui/login.

OS: Ubuntu 18.04.2
Docker: 20.10.5
Docker-compose: 1.26.0

It takes some time to start artifactory in a container. When you connect the browser, you are redirectored form localhost:8082 to localhost:8082/artifactory. The same for 127.0.0.1:8082. The screen shows a "JFrog Platform will be available shortly" screen. When artifactory is ready the different redirects as described above occur.

Dominant language
Python
Stars
63
Forks
38
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from conan-io/training

All issues in conan-io/training

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.