Docker#
Install Docker on Ubuntu -headless#
-
Get Docker
-
Install Docker
-
Check Installation
-
Remove installation file
Run Docker service#
-
CD to path
-
Docker compose up
Transfer Docker to from VPS to VPS#
- This is sample for shifting n8n from VPS to VPS
-
In Old VPS, cd to docker compose folder
-
Export volume
-
On new VPS
List Container in docker
#
docker container ls
Export container
#
! CD to the file location you want to export to
docker container export [container id] -o [name.file format]
! Example:
docker container export 9b677774e35e0 -o Wordpress.tar
Docker copy
#
docker cp -a [container id]:file/location/[file] [destination]
Docker can't Pull
#
- Add in :
! Need line break after }
- Restart Docker