I want to run ipfs node on aws ecs fargate, so I am building that with load balancer, ecs, github workflows, dockerfile, and so on.
I think I am almost done I entered ipfs node through {...elb.amazonaws.com}:5001/webui
but I met error like below.
When I build image and run container on local is worked well.
in Dockerfile
FROM ipfs/go-ipfs
when build image
docker build -t ipfs-on-aws .
run instance
docker run -d --name ipfs-on-aws-container -v ipfs_staging:/export -v ipfs_data:/data/ipfs -p 4001:4001 -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/go-ipfs:latest
But on aws ecs is not worked. I think I should run some command on Dockerfile, but I don’t know how to run the command.
When I type command like this, it raise error
FROM ipfs/go-ipfs
ENTRYPOINT [ "docker run -d --name ipfs-on-aws-container -v ipfs_staging:/export -v ipfs_data:/data/ipfs -p 4001:4001 -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/go-ipfs:latest" ]
"docker run" requires at least 1 argument.
See 'docker run --help'.
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
How to run command on Dockerfile as I run on local?