docker-explorer icon indicating copy to clipboard operation
docker-explorer copied to clipboard

error while mounting windows container which is not exited container

Open vijaykumarppsg opened this issue 3 years ago • 0 comments

Hello,

i have one running windows container in windows machine. i took the volume of the windows machine and trying to mount the running container,i see below error.

de.py -r /shared/volume/ProgramData/docker mount 954d7b6c9f99e6aa9ebaf71c23bdafc853d00c206db519076f97899d04115a89 /shared/954d7b6c9f99e6aa9ebaf71c23bdafc853d00c206db519076f97899d04115a89/ Warning: Due to differences in the Windows container implementation this command will not actually mount the given container FS but will create a mountable raw image:

954d7b6c9f99e6aa9ebaf71c23bdafc853d00c206db519076f97899d04115a89.raw

Which can then be mounted using standard tools. Traceback (most recent call last): File "/usr/bin/merge_vhdx.py", line 623, in MergeVHDXTool().Main() File "/usr/bin/merge_vhdx.py", line 606, in Main child_disk = VHDXDisk( File "/usr/bin/merge_vhdx.py", line 290, in init self.bat_table = self._ParseBAT() File "/usr/bin/merge_vhdx.py", line 421, in _ParseBAT return BlockAllocationTable(bat_blocks, self.bat_params) File "/usr/bin/merge_vhdx.py", line 193, in init parsed_bat = self._ParseBATBytes(bat_bytes, bat_params) File "/usr/bin/merge_vhdx.py", line 221, in _ParseBATBytes parsed_entry = PayloadBlockBATEntry(bat_bytes[idx:idx+8]) File "/usr/bin/merge_vhdx.py", line 89, in init self.state = self._parseState(bat_bytes) File "/usr/bin/merge_vhdx.py", line 169, in _parseState raise ValueError(f'Invalid state {state_int} for payload block entry') ValueError: Invalid state 5 for payload block entry

Note: same command works well when we exit the container.

Thanks, Vijay

vijaykumarppsg avatar Mar 07 '22 12:03 vijaykumarppsg