alpine/sqlite

Sponsored OSS

By alpine

Updated 4 days ago

Image
8

50K+

alpine/sqlite repository overview

SQLite3

DockerHub Badge

quick start
# if "test.db" is not exist, it will be created automatically
docker run -ti --rm -v $(pwd):/apps -w /apps alpine/sqlite test.db "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);"

# If you can run it agian, it will prompt the table has been created
docker run -ti --rm -v $(pwd):/apps -w /apps alpine/sqlite test.db "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);"
Error: in prepare, table users already exists
  CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);
               ^--- error here

ls -l test.db

Tag summary

Content type

Image

Digest

sha256:c91204bde

Size

4.3 MB

Last updated

4 days ago

docker pull alpine/sqlite:3.53.2

This week's pulls

Pulls:

3,449

Last week