I removed a container disk 1, in order to allocate more space to Container Disk 2. but still cannot increase the size of container disk 1 which is 100G. my disk capacity is 251G.
Here is the detail of diskutil.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
To add the space from the deleted container to the existing container, the deleted container would at least have to physically reside after the existing container. In your case, this probably was not true. You can confirm this by viewing the output from the command given below.
diskutil info disk0s3 | grep -e Size -e Offset
Here, I assume the existing container has
disk0s3 as the identifier for the physical partition. If you restart your Mac, this will probably change to
disk0s2. The offset should show the partition starts at around 151 GB. If so, then all the free space you created resides before the container and therefore can not be added to the container.
Apple's intent by creating APFS was for a computer to have only one APFS container. You can create additional volumes within a container and install more than one macOS operating system. If you had done this, then deleting the APFS volume(s) would have automatically made the free space available for other volumes.