You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+33-28Lines changed: 33 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,43 +1,41 @@
1
-
Introduction
2
-
=============
1
+
# Image2Docker
3
2
4
-
`Image2Docker` is a PowerShell module which ports existing Windows application workloads from virtual machines to Docker images. It supports multiple application types, but the initial focus is on IIS. You can use `Image2Docker` to extract ASP.NET websites from a VM, so you can run them in a Docker container with no application changes.
3
+
`Image2Docker` is a PowerShell module which ports existing Windows application workloads from virtual machines to Docker images. It supports multiple application types, but the initial focus is on IIS. You can use `Image2Docker` to extract [ASP.NET websites from a VM](https://blog.docker.com/2016/12/convert-asp-net-web-servers-docker-image2docker/), so you can run them in a Docker container with no application changes.
5
4
6
-
This project aims to provide a framework to simplify the creation of Dockerfiles for Microsoft Windows Server Hyper-V Container
5
+
## Introduction
6
+
7
+
This project aims to provide a framework to simplify the creation of Dockerfiles for Windows Docker
7
8
images, based upon analysis of existing WIM or VHDX image files.
8
9
9
-
The Microsoft Windows Server 2016 platform introduces new capabilities for containerizing applications.
10
+
Microsoft Windows 10 and Windows Server 2016 introduce new capabilities for containerizing applications.
10
11
There are two types of container formats supported on the Microsoft Windows platform:
11
12
12
13
-**Hyper-V Containers** - Containers with a dedicated kernel and stronger isolation from other containers
13
-
- **Windows Containers** - application isolation using process and namespace isolation, and a shared kernel with the container host
14
+
-**Windows Server Containers** - application isolation using process and namespace isolation, and a shared kernel with the container host
14
15
15
-
Prerequisites
16
-
=============
16
+
## Prerequisites
17
17
18
-
Windows Server 2016, or Windows 10 with the Anniversary Update is required on the system that is using this module.
18
+
Windows Server 2016, or Windows 10 with the Anniversary Update is required to use `Image2Docker`.
19
19
20
-
The module generates a [Dockerfile](https://docs.docker.com/engine/reference/builder/) which you can build into a Docker image. The system running the `ConvertTo-Dockerfile` command does not need Docker installed, but you will need [Docker setup on Windows](https://github.com/docker/labs/blob/master/windows/windows-containers/Setup.md) to build images and run containers.
20
+
`Image2Docker` generates a [Dockerfile](https://docs.docker.com/engine/reference/builder/) which you can build into a Docker image. The system running the `ConvertTo-Dockerfile` command does not need Docker installed, but you will need [Docker setup on Windows](https://github.com/docker/labs/blob/master/windows/windows-containers/Setup.md) to build images and run containers.
21
21
22
-
Installation
23
-
=============
22
+
## Installation
24
23
25
24
Installing this PowerShell module from the PowerShell Gallery is very easy. Simply invoke ``Install-Module -Name Image2Docker`` in an administrative prompt.
26
25
If you receive any errors, please validate the presence of the ``PowerShellGet`` module by running this command: ``Get-Command -Name PowerShellGet -ListAvailable``.
27
26
You can also validate the presence of the ``Install-Module`` command by running: ``Get-Command -Module PowerShellGet -Name Install-Module``.
28
27
If the ``PowerShellGet`` module or the ``Install-Module`` commands are not accessible, you may not be running a supported version of PowerShell.
29
28
Make sure that you are running PowerShell 5.0 or later on a Windows 10 client operating system.
30
29
31
-
Usage
32
-
=============
30
+
## Usage
33
31
34
32
After installing the ``Image2Docker`` PowerShell module, you will need one or more valid ``.vhdx`` or ``.wim`` files (the "source image").
35
33
To perform a scan of a valid VHDX or WIM image file, simply call the ``ConvertTo-Dockerfile`` command and specify the ``-ImagePath`` parameter, passing in the fully-qualified filesystem path to the source image.
This project supports discovery of custom artifacts.
64
70
Each artifact is represented by a folder that is contained within the ``.\Functions\Private\Artifacts`` subdirectory, containing at least two PowerShell script files that contain :
@@ -72,8 +78,7 @@ You can also include any files within the Artifact directory that may be used to
72
78
73
79
You can add your own discovery artifacts to this project, by issuing a pull request. If you don't wish to share the artifacts publicly, you can simply place them into the module's ``.\Functions\Private\Artifacts`` directory on each system that will perform image scans.
74
80
75
-
Supported Artifacts
76
-
===================
81
+
## Supported Artifacts
77
82
78
83
This project currently supports discovery of the following artifacts:
79
84
@@ -87,8 +92,8 @@ This project currently supports discovery of the following artifacts:
0 commit comments