Docker pull shows "Unknown blob" - asp.net

I'm trying to pull microsoft/aspnet image. It tries to download something and shows the progress. But then it shows an error - "Unknown blob".
How I can solve this?
P.S. I have docker client and server v1.12.2

Your docker version is 1.12.2 which does not supports Windows Containers, which means you are running Linux Containers in the VM. And you are pulling a Windows container based image so either update your docker to the 1.13.0 beta version which supports Windows Containers and pull this image or find a linux based image of .Net.
To see how to switch to Windows Containers, see this GIF

You must download and install latest docker from here
and switch to windows container.
read more

The problem is not Windows/Linux cross compatibility. A Linux client can pull Windows images, though it cannot actually launch them.
The issue 'unknown blob' is most likely image corruption. Refer to other answer that mentioned that your image name is deprecated.

You're trying to download a windows image to a Linux host.
I'm assuming you're running the docker host within a Linux VM.
If you have access to Windows Server 2016 use that.

try
docker pull microsoft/aspnetcore
Microsoft changed the names of their Docker Hub Repos in the last months so it is not so easy to find the right ones.

Related

I am unable to vagrant up

I am using a file from GitHub
It has a vagrant file with it. When I run vagrant up command in my terminal, I get an error.
The terminal should show READ ABOVE message when successful download
I want to type in the address to the site on my browser to start a local development server.
Its pretty old file and the repo was using puphpet but this project seems dead for 2 years, the website is down.
In your case, vagrant is trying to download the box from internet but the owner of this box hosted it under the puphpet domain not available anymore
I am not sure what's the best way to help now:
find another more recent example and start from there
if you want to fix this, you will need https://github.com/LearnWebCode/vagrant-lamp/blob/master/puphpet/config.yaml#L6 and use a different box available on vagrant site, ubuntu 16.04 is pretty old now but you can search one from vagrant box

Unable to access working web app on docker windows container via localhost

I am using Windows 10 ver. 1709 and docker 17.09.1-ce-win42 (using windows containers). I successfully created an image of my ASP.NET app with microsoft/aspnet as base image.
In order to create the container, I use the command:
docker run -d -p 8001:80 --name mycontainer myimage:v1.
The container is created properly, and if I want to access the website, I use the container's IP address known thanks to
docker inspect --format '{{ .NetworkSettings.Networks.nat.IPAddress }}' mycontainer
Despite that, I want to access my app through localhost:8001 - it does not work.
Can someone tell me if and what I did something wrong? I have read that mapping in windows containers is problematic.
Thanks in advance :)
This is known bug in Winnat implementation of Windows. No solution to this but either access by internal IP address or access it externally.
Details
Will be fixed in next edition of Windows
https://blogs.technet.microsoft.com/networking/2017/11/06/available-to-windows-10-insiders-today-access-to-published-container-ports-via-localhost127-0-0-1/

Openstack, a small image for a tiny flavor

Recently I installed openstack using devstack on my laptop. The problem I'm facing is to launch an instance, since my pc have poor ressources (32 bits, 4 Go Ram, 20Go free space), I need to deploy a very small image.
I tried an iso image for an ubuntu, I downloaded also a image from Ubuntu Cloud images but both of them can't be started. All I want to do is to launch an instance, install java, Tomcat server.
Any advice about an image that I can use?
Try Ubuntu Server Cloud Image
It will run perfectly with 512 MB of RAM.
Also stop unwanted services to save memory. Like stop ssh, sendmail, crond If you are not using them.
Use ubuntu cloud images. Make sure your cloud image is also 32bit.
While spawning instance, see that you look into Nova Security groups to allow ports which you might use.
devstack has cirros built-in. It is probably as small as you can get. It is a limited distro, but you should be able to download the jdk installer and run it.
You may need to download a 32 bit cirros image. The cirros distro downloads are available here:
https://launchpad.net/cirros/+milestone/0.3.0
This image should work for you:
https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-i386-disk.img
You can try any image which are at **https://docs.openstack.org/image-guide/obtain-images.html.
In these Ubuntu image is one which you can use and install applications on it.
It comes with default username ubuntu and you can set new password using cloud-init of heat template or manually while launching the instance.

Adding a Host on CloudStack development environment

I set a CloudStack development environment on Ubuntu 12.04 according to [this]
It works well, but I can't add a host through the management server UI.
I tested on released binary one, It could add the hosts. (Hypervisor: KVM)
I confirmed the log on terminal while the management server is running, It just said "unable to add host".
How can solve this problem?
Send this question to the Apache CloudStack developer mailing list.
Be prepared to provide a copy of the command you used to start the management server, the exact text from 10 lines before and 10 lines after the "unable to add host" message, and a copy of any exceptions that occured before this message.
I solved myself!
That's because of version. My CloudStack management server source version from GitHub was 4.2.0. But agent version was 4.1.0. So I changed source version 4.1.0. And, It was working well.

unable to launch WindowsXp image on openstack

I tried openstack on my laptop, my setup is like this
Host Machine: Windows 7
Virtualisation: VirtualBox
Ubuntu12 is running on this VirtualBox, On this Ubuntu12, I installed OpenStack Essex packages with qemu as hypervisor, and added few uec linux images on to glance, I was able to access linux images using ssh and vnc, it was great success.
Now, It has become very challenging to upload Windows image , it was really a night mare I tried all possible ways, searched in google found lot of solutions, but nothing worked, at last I converted WindowsXp.vdi file to WindowsXp.img using VBoxManage and added to glance, once I launch it I am getting blue screen error and windowsxp is horribly
restarting......................... So please help to resolve this issue
Your windows images (server or desktop) will BSOD without the correct drivers for the virtualization that you have chosen. Try installing the windows image with one of the drivers at http://www.claunia.com/qemu/drivers/index.html (QEMU drivers) and see how it goes.
Please note: Windows is notoriously difficult to run on any cloud not just OpenStack. In addition to the drivers, you will wrestle with image format (like you have) and initialization problems (otherwise all the images come up with that same GUIDs).

Resources