dockerhub

Listing the tags of a Docker image on a Docker hub through the HTTP API

狂风中的少年 提交于 2019-11-30 15:46:46
I would like to list the tags of a Docker image official Docker hub through its HTTP interface, but I am a bit confused. As there seems to two versions of them: https://docs.docker.com/v1.6/reference/api/registry_api/ https://docs.docker.com/v1.6/registry/spec/api/ I managed to get them through sending a GET request to this endpoint: https://index.docker.io/v1/repositories/{my-namespace}/{my-repository}/tags along with basic authentication credentials. I am not sure if there is a correct one among them, but which should I be using? Docker made a huge refactor of the registry: registry v2.0.

Create a docker image/container from EC2 AMI

蹲街弑〆低调 提交于 2019-11-30 04:52:26
I am very new to docker and am trying to import my AWS EC2 AMI into a docker image. The image is a m2 linux image. I have also setup a private docker hub(artifactory) to which I intend to push the image and make it available for consumption. What are the steps for importing AMI into docker image without starting from a base image and updating. Pointers to any explanation would work too. user2153517 Here is how I did it. On source AMI locate root volume snapshot id in the description /dev/sda1= snap-eb79b0b1 :15:true:gp2 Launch instance with public Ubuntu 14.04 AMI Create volume from snapshot

How to add tags to docker images made using autobuild

这一生的挚爱 提交于 2019-11-30 04:37:38
问题 I've searched around and can't find a real answer to this. If I create a docker git repo and set up autobuild to my dockerhub account, it will build with a single tag (i.e. latest, or 1.0 or foo) but I can't find any way to add a tag afterwards as you can via command line with a locally built docker image. Pulling down the image and then retagging doesn't work as the autobuild repos are read-only outside of the webui. Being able to manually add a tag to an existing build would satisfy me for

Create a docker image/container from EC2 AMI

前提是你 提交于 2019-11-29 02:51:26
问题 I am very new to docker and am trying to import my AWS EC2 AMI into a docker image. The image is a m2 linux image. I have also setup a private docker hub(artifactory) to which I intend to push the image and make it available for consumption. What are the steps for importing AMI into docker image without starting from a base image and updating. Pointers to any explanation would work too. 回答1: Here is how I did it. On source AMI locate root volume snapshot id in the description /dev/sda1= snap

docker toolbox mount file on windows

故事扮演 提交于 2019-11-29 02:30:25
问题 I am a beginner with docker and I am using a windows machine. But I have a problem mounting files using volumes. The documentation says the following thing about mount files on OSX and windows : Official docker docs : Note: If you are using Docker Machine on Mac or Windows, your Docker daemon only has limited access to your OS X/Windows filesystem. Docker Machine tries to auto-share your /Users (OS X) or C:\Users (Windows) directory - and so you can mount files or directories using docker run

Dockerfile for tomcat

大兔子大兔子 提交于 2019-11-29 00:41:01
I need to create an image with tomcat installation details.I tried many dockerfile in net and tried to build but no luck.Can anybody tell me what commands should be their in dockerfile for a successfull tomcat installation?.I dont need any official tomcat image.Thanks in advance. This is what i did to solve this: Dockerfile FROM tomcat MAINTAINER richard RUN apt-get update && apt-get -y upgrade WORKDIR /usr/local/tomcat COPY tomcat-users.xml /usr/local/tomcat/conf/tomcat-users.xml COPY context.xml /usr/local/tomcat/webapps/manager/META-INF/context.xml EXPOSE 8080 I'm copying those two files in

Docker Hub Automated Build - Tagging

六月ゝ 毕业季﹏ 提交于 2019-11-28 22:53:34
问题 When specifying an Automated Build on Docker Hub, I can set some settings ( Type ('Branch' or 'Tag'), Name , Dockerfile Location and Docker Tag Name ). But unfortunately I didn't find any documentation for those. I assume, that when I choose Type 'Branch' and enter a Name , this is the branch from my git repository on GitHub/BitBucket being used and that Docker Tag Name results in the tag being assigned to the created image. I played around a bit with it and found some things that are not

docker toolbox mount file on windows

痴心易碎 提交于 2019-11-28 21:28:23
I am a beginner with docker and I am using a windows machine. But I have a problem mounting files using volumes. The documentation says the following thing about mount files on OSX and windows : Official docker docs : Note: If you are using Docker Machine on Mac or Windows, your Docker daemon only has limited access to your OS X/Windows filesystem. Docker Machine tries to auto-share your /Users (OS X) or C:\Users (Windows) directory - and so you can mount files or directories using docker run -v /Users/:/ ... (OS X) or docker run -v /c/Users/:/ >> go to docker volumes docks I have a small

Check if image:tag combination already exists on docker hub

纵饮孤独 提交于 2019-11-27 20:04:14
As part of a bash script, I want to check if a particularly docker image:tag combination exists on docker hub. Also, it will be a private repository. i.e. the pseudocode would be like: tag = something if image:tag already exists on docker hub: Do nothing else Build and push docker image with that tag Please try this one function docker_tag_exists() { curl --silent -f -lSL https://index.docker.io/v1/repositories/$1/tags/$2 > /dev/null } if docker_tag_exists library/nginx 1.7.5; then echo exist else echo not exists fi Update: In case of usage Docker Registry v2 (based on this ): # set username

Dockerfile for tomcat

牧云@^-^@ 提交于 2019-11-27 14:14:44
问题 I need to create an image with tomcat installation details.I tried many dockerfile in net and tried to build but no luck.Can anybody tell me what commands should be their in dockerfile for a successfull tomcat installation?.I dont need any official tomcat image.Thanks in advance. 回答1: This is what i did to solve this: Dockerfile FROM tomcat MAINTAINER richard RUN apt-get update && apt-get -y upgrade WORKDIR /usr/local/tomcat COPY tomcat-users.xml /usr/local/tomcat/conf/tomcat-users.xml COPY