Docker Pull Python - python-3.x

I'm a beginner trying to user Docker with my python3 code.
This is my Dockerfile
FROM rdempsey/python-scraper:latest
ADD soj.py/
RUN pip3 install urllib.request
CMD [ "python", “./soj.py” ]
I got this error:
manifest for rdempsey/python-scraper:latest not found
So I assumed I need to do this Docker pull command:
docker pull rdempsey/python-scraper
In order to access this public repository https://hub.docker.com/r/rdempsey/python-scraper/ to fix the error.
I then experienced this error when trying to do the pull:
FrankieMacBook-Pro-2candidacy-job-slurper$ docker pull rdempsey/python-scraper
Using default tag: latest
Error response from daemon: manifest for rdempsey/python-scraper:latest not found
Can someone direct me on what I'm doing wrong?

The problem is that the image you are trying to pull does not contain a latest tag, only a v2 tag.
Change the first line in your Dockerfile to FROM rdempsey/python-scraper:v2 and everything should work fine.

You are pulling with latest tag which is not present at DockerHub. Try:
docker pull rdempsey/python-scraper:v2
You can see the version at https://hub.docker.com/r/rdempsey/python-scraper/tags/

Use a explicit version number (in this case v2) instead of the latest tag.

Related

Not able to start up hyperledger fabric network

I'm getting below error when running command ./fabricNetwork.sh up.
error
Error : manifest for hyperledger/fabric-ca:latest not found
Error : no such container : cli
errror screenshot
https://i.stack.imgur.com/DXSIz.jpg
docker files
https://github.com/NavyaGouru/Ashish_HLF
Try hyperledger/fabric-ca:1.4.8. latest tag has been deprecated instead use a specific tag. Fix your Local Image and Docker Image error too by updating Local Images to 1.4.8.
#alpha as already answered the question. I'd just like to add one point to it. You can pass the image tag to be used to launch the network using -i to the command. Its default value latest. You can see this by passing the --help flag to the command ./fabricNetwork.sh up.
The Local Version of the images can be found in the .env file in the directory. DOCKER_IMAGE_VERSION is the version that you pass using the -i flag. These two should have the same value otherwise you'll get this.
=================== WARNING ===================
Local fabric binaries and docker images are
out of sync. This may cause problems.
===============================================
ERROR! Fabric Docker image version of 1.4.8 does not match the versions supported by the test network.

Some question on Boot2docker setup for build and run

I’m a fresh beginner on bioinformatics. Recently, I start learning it with the book named “Bioinformatics with Python Cookbook (by Antao, Tiago)”. I met some issues while setting up Docker for Linux. Please see below for the issues:
I was trying to set up the Docker files following the author’s instruction, but I found some files were “failed to download”.
docker build -t bio
https://raw.githubusercontent.com/tiagoantao/bioinf-python/master/docker/2/Dockerfile
Then I still went ahead set up the container following the instruction:
“Now, you are ready to run the container, as follows: docker run -ti -p 9875:9875 -v YOUR_DIRECTORY:/data bio”
I typed as docker run -ti -p 9875:9875 -v C:/Users/guangliang/Desktop/Bioinformation/data bio
However, it gave me an error saying “Unable to find image “bio:latest” locally”.
Can anyone give me any suggestions on this? My thought could be the first step I missed downloading some files for setting the Dockers, but I am not sure if I can fetch these files.
Thank you so much for any comments!
Best regards
Johnny
I tried downloading the docker files a few time, but the error still appears
docker build -t bio
https://raw.githubusercontent.com/tiagoantao/bioinf-python/master/docker/2/Dockerfile
docker run -ti -p 9875:9875 -v C:/Users/guangliang/Desktop/Bioinformation/data bio
In the first issue, I found some files were “failed to download”.
In the 2nd issue, an error saying “Unable to find image “bio:latest” locally”. appears
Here you have a couple of problems:
1) It looks you do not download that docker file and build required docker image locally
2) You are getting that error about not finding image locally because of previous problem
So, you should do like this:
1) Download that Dockerfile (https://raw.githubusercontent.com/tiagoantao/bioinf-python/master/docker/2/Dockerfile). If you cant download that file for some reason, just open it at the git, select all content, copy, than in some folder on your computer make a new file, name it "Dockerfile" and paste the content.
2) Build locally image - go to the folder you download that dockerfile and execute following command:
docker build -t bio .
3)Run your container with docker run ... command

LibreOffice Online on Debian with Docker

I'm trying to install libreoffice online on debian (i can change OS if necessary but still linux) with docker and i tried this image that i found on docker hub :
https://hub.docker.com/r/libreoffice/online/
docker pull libreoffice/online.
BUT : when i use this command,
Using default tag: latest
Error response from daemon: manifest for libreoffice/online:latest not found
I search on the web if someone had the same problem but i found nothing at all.
Sorry if i wrote something bad i'm still learning linux.
Could someone help me please ?
Have a nice day.
Pull an image from Docker Hub
To download a particular image, or set of images (i.e., a repository), use docker pull. If no tag is provided, Docker Engine uses the :latest tag as a default.
As you can see at hub.docker.com/r/libreoffice/online/tags (and also the error message says so), there is no latest tag for this image. Try:
docker pull libreoffice/online:master

Issue bringing up Hyperledger Fabric "Building Your First Network" sample

while I am running this command from my terminal
sudo ./byfn.sh -m up
I am getting below error:
Starting with channel 'my-channel' and CLI timeout of '10' seconds
and CLI delay of '3' seconds Continue (y/n)? y proceeding ...
Pulling orderer.example.com (hyper-ledger/fabric-orderer:latest)...
ERROR: manifest for hyper-ledger/fabric-orderer:latest not found
ERROR !!!! Unable to start network Error response from daemon: No
such container: cli
How do I resolve this please?
You need to download platform specific binaries, please see how to do it here in the following tutorial. Please also make sure you have all per-requisites, you can find more about what needed here.
Ideally, you should download the platform binaries and images as given in the Fabric documentation - Install Binaries and Docker Images
Or
You should make sure that your terminal has internet access & not behind any corporate proxy. Whatever is needed would be pulled by docker anyway. I am guessing that hyperledger/fabric-baseos image is not pulled by the script above.
If you don't find hyperledger/fabric-baseos:latest,then either docker pull hyperledger/fabric-baseos:tag depends on the fabric version on your own
Or, the chaincode instantiate process in byfn- end to end CLI would do it for you.
I had the same issue. Turns out it was just a broken docker-compose installation. I simply figured it out typing docker-compose in my terminal, and I ran into ImportError: No module named ssl_match_hostname
With a clean docker compose install, I got it to work.

Docker: What's available in the parent image?

In docker how do I know what packages are available in the parent image I am using?
I am trying something like:
docker search python
but I get some (network?) error.
I have the image locally. How would I search what packages I can use?
docker search is the command you use to search for docker images on the docker hub.
If I understood well your question, given an image (say alpine:latest) you want to know what's inside that image.
If that's the case, the only thing you can do IMHO is just run the container and explore it.
You can do that for the alpine:latest image with the following command:
docker run --rm -ti alpine:latest ash
You'll get a prompt inside an instance of the mentioned image and you can dig around to check what's available.
There is no place where you can access informations about the content of an image in a structured way.

Resources