AMP allows you to deploy individual instances inside containers in order to isolate them from the host.
Note that ampinstmgr
and ADS based instances cannot be run inside containers, as they need the ability to create them.
Linux
- From SSH/Terminal run
sudo su -l
- Run
bash <(wget -qO- getamp.sh) installDocker
- Reboot Linux
4.Login to the AMP panel and navigate toConfiguration -> New Instance Defaults
and enable “Create in Docker Containers” - Create your first Docker instance!
Note: AMP may require you to manually add the amp user to the docker group. If so, it will prompt that you run this command usermod -a -G docker amp
as root.
Windows
- Install Docker Desktop using the Install Guide
- Open the start menu and type
compmgmt.msc
to open Computer Management - Expand “Local Users and Groups” and select Groups
- Double-click
docker-users
and click Add - In the “Enter the object names to select” section type
NETWORK SERVICE
- Click OK to close out of all windows
- Reboot Windows
- Login to the AMP panel and navigate to
Configuration -> Networking
to disable “Use Host Networking for new Containers” - Navigate to
Configuration -> New Instance Defaults
and enable “Create in Docker Containers” - Set the
Default auth server
to behttp://host.docker.internal:8080
(Assuming ADS is on port 8080) - Change the default AMP IP Binding to 0.0.0.0.
- Create your first Docker instance!
Now instances created via ADS will be created inside containers automatically. No additional configuration is required.
You can also use the --docker
flag when creating instances via ampinstmgr. E.g. ampinstmgr --docker create rust