`; resultsHTML += results .map((item) => { return `
${item.meta.title}

…${item.excerpt}…

`; }) .join(""); if (resultsLength > 5) { resultsHTML += ``; } searchBarResults.innerHTML = resultsHTML; } } searchBarInput.addEventListener("input", search); if (window.heap !== undefined) { searchBarResults.addEventListener('click', function (event) { if (event.target.tagName === 'A' && event.target.closest('.link')) { const searchQuery = event.target.getAttribute('data-query'); const resultIndex = event.target.getAttribute('data-index'); const url = new URL(event.target.href); const properties = { docs_search_target_path: url.pathname, docs_search_target_title: event.target.textContent, docs_search_query_text: searchQuery, docs_search_target_index: resultIndex, docs_search_source_path: window.location.pathname, docs_search_source_title: document.title, }; heap.track("Docs - Search - Click - Result Link", properties); } }); } });

Push images to a repository


To add content to a repository on Docker Hub, you need to tag your Docker image and then push it to your repository. This process lets you share your images with others or use them in different environments.

  1. Tag your Docker image.

    The docker tag command assigns a tag to your Docker image, which includes your Docker Hub namespace and the repository name. The general syntax is:

    $ docker tag [SOURCE_IMAGE[:TAG]] [NAMESPACE/REPOSITORY[:TAG]]
    

    Example:

    If your local image is called my-app and you want to tag it for the repository my-namespace/my-repo with the tag v1.0, run:

    $ docker tag my-app my-namespace/my-repo:v1.0
    
  2. Push the image to Docker Hub.

    Use the docker push command to upload your tagged image to the specified repository on Docker Hub.

    Example:

    $ docker push my-app my-namespace/my-repo:v1.0
    

    This command pushes the image tagged v1.0 to the my-namespace/my-repo repository.

  3. Verify the image on Docker Hub.