The following two tabs change content below. Bio Latest Posts. Surendra Anne. You can contact him at surendra linuxnix dot com. Latest posts by Surendra Anne see all. Next Linux Security Hardening for Beginners.
And that can be done by creating your own dockerfile. This is about the simplest sort of dockerfile you can create:. With our dockerfile in place, we need to build an image with the docker build command, giving it a name I chose datatest4:v1 , and then we can create a container from that image with docker run , just as we did before. The great thing about this approach is that now we have an image of our website that we can deploy anywhere.
Technique 1: Edit in the Container The first technique is the least practical, but demonstrates a very powerful feature of Docker containers. So while our datatest1 container is running IIS, we can also run PowerShell in it like this: docker exec -it datatest1 powershell This gives us an interactive command prompt inside our container.
This comment has been minimized. Sign in to view. Copy link Quote reply. FROM myapp:base I think it is just a placeholder for an image that supports the commands! Thank you for the Dockerfile! Really made my day! Africa 6. Asia System V timezones America 7. Atlantic Ocean US Antarctica 8.
Europe None of the above Australia 9. Indian Ocean Arctic Ocean Were you able to fix this issue? I am also getting same error. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Linked Related Hot Network Questions.
Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.
0コメント