Click here to Skip to main content
15,905,028 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WSO CCC 13/11 {EDITED] Pin
The pompey13-Nov-17 1:28
The pompey13-Nov-17 1:28 
GeneralRe: WSO CCC 13/11 {EDITED] Pin
A_Griffin13-Nov-17 1:29
A_Griffin13-Nov-17 1:29 
GeneralRe: WSO CCC 13/11 {EDITED] Pin
OriginalGriff13-Nov-17 1:38
mveOriginalGriff13-Nov-17 1:38 
GeneralRe: WSO CCC 13/11 {EDITED] Pin
The pompey13-Nov-17 1:48
The pompey13-Nov-17 1:48 
PraiseRe: WSO CCC 13/11 {EDITED] - Answer Pin
PeejayAdams13-Nov-17 3:01
PeejayAdams13-Nov-17 3:01 
GeneralRe: WSO CCC 13/11 {EDITED] - Answer Pin
A_Griffin13-Nov-17 3:08
A_Griffin13-Nov-17 3:08 
GeneralRe: WSO CCC 13/11 {EDITED] - Answer Pin
OriginalGriff13-Nov-17 4:28
mveOriginalGriff13-Nov-17 4:28 
GeneralHow I spent most of my weekend... Pin
Marc Clifton12-Nov-17 15:17
mvaMarc Clifton12-Nov-17 15:17 
Docker! More specifically, testing out the .NET Framework 4.7 image.

So first I had to enable Hyper-V. No problem, methinks. Riiight. After rebooting the computer, my multimonitor setup is totally trashed, thrashes, and Elephant | [mastadon] 'ed. As are my Fences icons. And there's these extra monitors suddenly showing up. WTF | :WTF:

Get that finally squared away, download the image (the instructions on the github repo are fubar'd) and launch VS2017.

Where is it? I get the VS2017 splash screen, then nothing. Elephant | [mastadon] me, it looks like VS2017 & VS2015 are blown away. Uninstall both, reinstall both.

Same. Elephant | [mastadon] ing. Behavior.

Just by chance, I hit Alt-Tab and I see Visual Studio is one of the running applications. Where the Elephant | [mastadon] is it??? So I think, maybe it's on one of those weird extra monitors I saw. So I poke around, and there's this "disconnect monitor" option in the display settings. So I try that for one of the "ghost" monitors. OMFG. Suddenly VS appears.

Next, I discover the BS that is Microsoft's attempt at bringing .NET onto Docker. Oh sure, there's .NET Core (or is .NET Standard or is it .NET Creator or is it .NET Next Gen???) but no, I wanted to try the full blown .NET Framework 4.7, because that's what I write in, and I don't want any of this "Core" BS.

So there's this image. OK. Docker tells me it's downloading some 10 GIGA (yes, that's GIGA) bytes of data for the image. OMG | :OMG: OMG | :OMG: OMG | :OMG:

When all is said and done, my poor little 256GB SSD only has 1.4GB free (it was pretty stuffed already) but it turns out the whole Docker/Windows/.NET thing sucks up 17GB of disk space uncompressed (then again, maybe those compressed files are still lying around somewhere???)

Well, at least the stupid demo Microsoft gives you compiled.

Oh, but I forgot to tell you, you need to switch to "Windows containers" in the Docker applet. Oh, and what I really forgot to tell you was the three install attempts for Docker for Windows because I had a previous "Docker Toolbox" installation (which I did uninstall before doing anything!!!) but that left various breadcrumbs - PATH entries (I might have added those), and a ".docker" folder in the Users\Marc folder. All of which caused Docker For Windows to be "No Docker For You". Two separate SO posts resolved those issues.

So, we finally get to compiling. Fine. Then we get to running.

And We wait (at this point, it's the royal WE)

And We Wait

await Marc;

And We Wait

And OMG | :OMG: it ran! There's the output of the stupid "bot" in the console window.

So, it takes something like 15 seconds on my 8 core 16GB fast machine to spin up the container, undoubtedly because I'm running a near full instance of Windows.

So I decide to try a few other things, all of which work, and finally landing on "let's write a simple HttpListener" as a container. Great, 20 lines of code later and I have something that works in Windows. Let's see if it works in the container.

Nope. Sesame Street time: One of these things (or most of these things) doesn't belong: http://localhost, http://127.0.0.1, http://0.0.0.0, http://*

The last one, http://*:5001/ seemed to help. I haven't tried localhost again. Who knows. So I go to my browser, to "localhost:5001" and...

nothing.

Hours later, I discover some interesting things. By now, after fussing with Dockerfile EXPORT and that http://*:5001, I discover that entering the container's local IP into my browser works. But that's container's local IP, which changes every time the container is fired up, for each container that is fired up, all hail Mary to the container that never rules anything.

Various posts say you can't access a container from the host. Some posts say you're not using a container correctly if you're doing this, you should use a VM instead (and indeed, I had a VM of this working with Python.) Some say other BS, but at the end of the day, they're all saying BS, but I still can't figure out the problem.

I make a post on the Docker forum. I refuse to give up. The oxygen tank is redlining, but I refuse to give up. And then I find it.

[GitHub - Kymeric/DockerProxy: Proxy localhost for Docker Windows Containers(https://github.com/Kymeric/DockerProxy)

Indeed you can't access the container through the host's localhost unless you proxy localhost:port to [containerIP:port], and that's what that little gem above does.

Sweet. Everest has been vanquished. No Elephant | [mastadon] s where harmed in this post.
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: How I spent most of my weekend... Pin
PIEBALDconsult12-Nov-17 17:05
mvePIEBALDconsult12-Nov-17 17:05 
GeneralRe: How I spent most of my weekend... Pin
User 274316212-Nov-17 20:57
User 274316212-Nov-17 20:57 
GeneralRe: How I spent most of my weekend... Pin
Brady Kelly12-Nov-17 22:22
Brady Kelly12-Nov-17 22:22 
GeneralRe: How I spent most of my weekend... Pin
Marc Clifton13-Nov-17 1:12
mvaMarc Clifton13-Nov-17 1:12 
GeneralRe: How I spent most of my weekend... Pin
A_Griffin12-Nov-17 21:02
A_Griffin12-Nov-17 21:02 
GeneralRe: How I spent most of my weekend... Pin
Kornfeld Eliyahu Peter12-Nov-17 21:51
professionalKornfeld Eliyahu Peter12-Nov-17 21:51 
GeneralRe: How I spent most of my weekend... Pin
xiecsuk12-Nov-17 22:39
xiecsuk12-Nov-17 22:39 
GeneralRe: How I spent most of my weekend... Pin
Marc Clifton13-Nov-17 1:13
mvaMarc Clifton13-Nov-17 1:13 
GeneralRe: How I spent most of my weekend... Pin
Rage13-Nov-17 2:23
professionalRage13-Nov-17 2:23 
GeneralRe: How I spent most of my weekend... Pin
dandy7213-Nov-17 4:52
dandy7213-Nov-17 4:52 
GeneralRe: How I spent most of my weekend... Pin
Marc Clifton14-Nov-17 3:31
mvaMarc Clifton14-Nov-17 3:31 
GeneralI was sent this, and... PinPopular
OriginalGriff12-Nov-17 5:44
mveOriginalGriff12-Nov-17 5:44 
GeneralRe: I was sent this, and... Pin
lopatir12-Nov-17 6:02
lopatir12-Nov-17 6:02 
GeneralRe: I was sent this, and... Pin
A_Griffin12-Nov-17 6:07
A_Griffin12-Nov-17 6:07 
GeneralRe: I was sent this, and... Pin
A_Griffin12-Nov-17 6:05
A_Griffin12-Nov-17 6:05 
GeneralRe: I was sent this, and... Pin
PIEBALDconsult12-Nov-17 7:03
mvePIEBALDconsult12-Nov-17 7:03 
GeneralRe: I was sent this, and... Pin
GuyThiebaut12-Nov-17 9:22
professionalGuyThiebaut12-Nov-17 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.