The docker image runs
when I run docker:
REPOSITORY TAG IMAGE ID CREATED SIZE
nsfcareer.ami latest f9d5e2f9b62d 6 minutes ago 5.15GB
amazonlinux 2 b94321659aca 3 months ago 162MB
[ec2-user@ip-172-31-55-132 ~]$ docker run -it f9d5e2f9b62d
Nothing happens. It just goes back to the command prompt. Also, it does not give me any information about what is going on, or why it will not load.
I have plenty of space (I thought that might be the issue but I have 100 GB of storage on the instance). I tried to set -D option to get more information but it did not give any further information.
I can successfully push the image, but I want to load it after it builds. Process works fine when building on a AWS Ubuntu instance. My issues is with the AMI instance types.
Steps to reproduce the behavior
This seems to happen when the docker images start to get big (?, maybe for 1 GB - a guess). I did not have issues for smaller images.
- Create AWS AMI image (t2.2xlarge with 100 GB of storage)
- Pull docker image (sudo docker pull rhk12/nsfcareer.ami:latest)
- Try to run docker image (sudo docker run -it f9d5e2f9b62d )
In my case it just goes back to command prompt. I was expecting that it would load the image and take me to home directory.
Thanks for any help you might be able to offer.