Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Then, pull your Docker image and other relevant file from GitHub. Once pulled, navigate to the project folder you just uploaded and run the Docker as you would do locally. To keep your service from blocking the console, you should run your Docker in detached mode or, alternatively, .

 

Alternatively, you can first enter ctrl-z to suspend the service and then run the following commands

Code Block
bg
disown -h

Doing this also makes your service run in background.

 

Now Then you can log out and the service will continue running on the EC2 instance.