Skip to content

Instantly share code, notes, and snippets.

@potikanond
Last active August 26, 2018 15:15
Show Gist options
  • Save potikanond/d221a759786d54da918ef002d78acd16 to your computer and use it in GitHub Desktop.
Save potikanond/d221a759786d54da918ef002d78acd16 to your computer and use it in GitHub Desktop.
Ex2.3: Ubuntu shell and CURL installation

Ex2.3: Ubuntu shell and CURL installation

Start Ubuntu Xenial container

$ docker container run -d -it --name my_ubuntu ubuntu:xenial

Inside Ubuntu container, update and install CURL

Note: make sure the DNS works fine in the container.

root@9b7xxx:/# apt update
root@9b7xxx:/# apt install curl

You can use 'Ctrl+pq' to exit the container without stopping it cause the CMD is running '/bin/bash' by default.

Reattach to the container

$ docker container attach my_ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment