Placing network restrictions with docker
Is it possible using a docker instance to place restrictions on a network. i.e. certain websites being restricted when using a sandbox browser?
See also questions close to this topic
What is the proper way to start a container after it has exited?
I have a container called sqlcontainer1. The image is "microsoft/mssql-server-linux:2017-latest". I restored a .bak file to it and now I can use it for local development. And I can even see if from SSMS (SQL Server Management Studio). Great!
The problem is after I reboot it the container status says "Exited".
The only way I can see to restart is to type:
docker start -ai sqlcontainer1
Then no command prompt is ever returned so I have to open another command prompt and retype:
docker ps -a
to see the status is now "UP 7 minutes". OK, I'm glad it's up and I can now connect back with SSMS and work from there (although I am wondering why it says 7 minutes. I've only had it up seconds). Good.
But there has to be a better way. I just want two commands like this;
docker start containerName docker stop containerName
Is there anything like this?
If I can get that far then I would like to look into a proper restart policy.
Super Basic Docker and Angular2 Setup
I need a simple working example of Docker + Node/Angular2. If anyone can find one that actually works i will pay you.
Large scale deployment of distributed system
I am currently working on a distributed systems project where each node is runs three applications (IPFS, Geth and Node.js). Essentially each node stores files on IPFS and then announces the IPFS link on an Ethereum smart-contract. Other nodes can then access the contract and fetch the files from IPFS.
I need to deploy about 100 nodes (each node would act as a separate machine) for testing purposes and am having difficulty figuring out the best way to do it.
I thought about doing it with Docker, but am having trouble running dockerized versions of Geth (does not start syncing, there are a lot of people with this problem). I looked at Docker swarm but the purpose of it seems to be to use several nodes as a cluster to run one container, rather than run several nodes to run several instances of the same container. Maybe there is a better way to use Docker for this purpose.
Essentially I need something that can spawn X nodes from a base image. Ideally I would create an image with Geth, IPFS and Node.js installed and then just instantiate a bunch of nodes with that image on AWS (or other cloud platform).
I would also like to have the ability to send one command to all nodes, like
touch /hello.txtand all would create the
/hello.txt. I've read about tools such as Vagrant and Chef, but would like some feedback before committing to one.